Neos\Flow\I18n\Cldr\CldrParser::isDistinguishingAttribute PHP Method

isDistinguishingAttribute() protected method

Distinguishing attributes in CLDR serves to distinguish multiple elements at the same level (most notably 'type').
protected isDistinguishingAttribute ( string $attributeName ) : boolean
$attributeName string
return boolean
    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);
    }