protected function isDistinguishingAttribute($attributeName)
    {
        // Taken from SupplementalMetadata and hardcoded for now
        $distinguishingAttributes = ['key', 'request', 'id', '_q', 'registry', 'alt', 'iso4217', 'iso3166', 'mzone', 'from', 'to', 'type'];

        // These are not defined as distinguishing in CLDR but we need to preserve them for alias resolving later
        $distinguishingAttributes[] = 'source';
        $distinguishingAttributes[] = 'path';

        // These are needed for proper plurals handling
        $distinguishingAttributes[] = 'locales';
        $distinguishingAttributes[] = 'count';

        // we need this one for datetime parsing (default[@choice] nodes)
        $distinguishingAttributes[] = 'choice';

        return in_array($attributeName, $distinguishingAttributes);
    }
protected function isDistinguishingAttribute($attributeName)
    {
        // Taken from SupplementalMetadata and hardcoded for now
        $distinguishingAttributes = ['key', 'request', 'id', '_q', 'registry', 'alt', 'iso4217', 'iso3166', 'mzone', 'from', 'to', 'type'];

        // These are not defined as distinguishing in CLDR but we need to preserve them for alias resolving later
        $distinguishingAttributes[] = 'source';
        $distinguishingAttributes[] = 'path';

        // These are needed for proper plurals handling
        $distinguishingAttributes[] = 'locales';
        $distinguishingAttributes[] = 'count';

        // we need this one for datetime parsing (default[@choice] nodes)
        $distinguishingAttributes[] = 'choice';

        return in_array($attributeName, $distinguishingAttributes);
    }
protected function isDistinguishingAttribute ( $ attributeName ) { // Taken from SupplementalMetadata and hardcoded for now $ distinguishingAttributes = [ 'key' , 'request' , 'id' , '_q' , 'registry' , 'alt' , 'iso4217' , 'iso3166' , 'mzone' , 'from' , 'to' , 'type' ] ; // These are not defined as distinguishing in CLDR but we need to preserve them for alias resolving later $ distinguishingAttributes [ ] = 'source' ; $ distinguishingAttributes [ ] = 'path' ; // These are needed for proper plurals handling $ distinguishingAttributes [ ] = 'locales' ; $ distinguishingAttributes [ ] = 'count' ; // we need this one for datetime parsing (default[@choice] nodes) $ distinguishingAttributes [ ] = 'choice' ; return in_array ( $ attributeName , $ distinguishingAttributes ) ; }
Checks if given attribute belongs to the group of distinguishing attributes

Distinguishing attributes in CLDR serves to distinguish multiple elements
at the same level (most notably 'type').

@param string $attributeName
@return boolean
Checks if given attribute belongs to the group of distinguishing attributes