Back to LanguageHelper class

Method getKnownLanguages

public static array
getKnownLanguages
(mixed $basePath = JPATH_BASE)
Returns a list of known languages for an area
Parameters
  • string $basePath The basepath to use
Returns
  • array key/value pair with the language file and real name.
Since
  • 3.7.0

Method getKnownLanguages - Source code

/**
 * Returns a list of known languages for an area
 *
 * @param   string  $basePath  The basepath to use
 *
 * @return  array  key/value pair with the language file and real name.
 *
 * @since   3.7.0
 */
public static function getKnownLanguages($basePath = JPATH_BASE)
{
    return self::parseLanguageFiles(self::getLanguagePath($basePath));
}