LanguageManager

Class responsible for providing language support on language-unaware sites.

Hierarchy

File

core/lib/Drupal/Core/Language/LanguageManager.php, line 12

Namespace

Drupal\Core\Language

Members

Name Modifiers Type Description
DependencySerializationTrait::$_serviceIds protected property An array of service IDs keyed by property name used for serialization.
DependencySerializationTrait::__sleep public function
DependencySerializationTrait::__wakeup public function
LanguageManager::$defaultLanguage protected property The default language object.
LanguageManager::$languages protected property A static cache of translated language lists.
LanguageManager::filterLanguages protected function Filters the full list of languages based on the value of the flag.
LanguageManager::getConfigOverrideLanguage public function Gets the current configuration override language. Overrides LanguageManagerInterface::getConfigOverrideLanguage
LanguageManager::getCurrentLanguage public function Returns the current language for the given type. Overrides LanguageManagerInterface::getCurrentLanguage
LanguageManager::getDefaultLanguage public function Returns a language object representing the site's default language. Overrides LanguageManagerInterface::getDefaultLanguage
LanguageManager::getDefaultLockedLanguages public function Returns a list of the default locked languages. Overrides LanguageManagerInterface::getDefaultLockedLanguages
LanguageManager::getDefinedLanguageTypesInfo public function Returns information about all defined language types. Overrides LanguageManagerInterface::getDefinedLanguageTypesInfo
LanguageManager::getFallbackCandidates public function Returns the language fallback candidates for a given context. Overrides LanguageManagerInterface::getFallbackCandidates
LanguageManager::getLanguage public function Returns a language object from the given language code. Overrides LanguageManagerInterface::getLanguage
LanguageManager::getLanguageName public function Produced the printed name for a language for display. Overrides LanguageManagerInterface::getLanguageName
LanguageManager::getLanguages public function Returns a list of languages set up on the site. Overrides LanguageManagerInterface::getLanguages
LanguageManager::getLanguageSwitchLinks public function Returns the language switch links for the given language type. Overrides LanguageManagerInterface::getLanguageSwitchLinks
LanguageManager::getLanguageTypes public function Returns an array of the available language types. Overrides LanguageManagerInterface::getLanguageTypes
LanguageManager::getNativeLanguages public function Returns a list of languages set up on the site in their native form. Overrides LanguageManagerInterface::getNativeLanguages
LanguageManager::getStandardLanguageList public static function Some common languages with their English and native names. Overrides LanguageManagerInterface::getStandardLanguageList
LanguageManager::getUnitedNationsLanguageList public static function The 6 official languages used at the United Nations.
LanguageManager::isLanguageLocked public function Checks whether a language is locked. Overrides LanguageManagerInterface::isLanguageLocked
LanguageManager::isMultilingual public function Returns whether or not the site has more than one language added. Overrides LanguageManagerInterface::isMultilingual
LanguageManager::reset public function Resets the given language type or all types if none specified. Overrides LanguageManagerInterface::reset
LanguageManager::setConfigOverrideLanguage public function This function is a noop since the configuration cannot be overridden by language unless the Language module is enabled. That replaces the default language manager with a configurable language manager. Overrides LanguageManagerInterface::setConfigOverrideLanguage
LanguageManager::__construct public function Constructs the language manager.
doc_Drupal
2016-10-29 09:22:35
Comments
Leave a Comment

Please login to continue.