Highlight/Highlighter.php
public function getAliasesForLanguage($language)
    {
        $language = self::getLanguage($language);

        if ($language->aliases === null) {
            return array($language->name);
        }

        return array_merge(array($language->name), $language->aliases);
    }
public function getAliasesForLanguage($language)
    {
        $language = self::getLanguage($language);

        if ($language->aliases === null) {
            return array($language->name);
        }

        return array_merge(array($language->name), $language->aliases);
    }
public function getAliasesForLanguage ( $ language ) { $ language = self :: getLanguage ( $ language ) ; if ( $ language -> aliases === null ) { return array ( $ language -> name ) ; } return array_merge ( array ( $ language -> name ) , $ language -> aliases ) ; }
Returns list of all available aliases for given language name.

@param string $language name or alias of language to look-up

@throws \DomainException if the requested language was not in this
Highlighter's language set

@return string[] An array of all aliases associated with the requested
language name language. Passed-in name is included as
well.
Returns list of all available aliases for given language name .