W3cubDocs

/Drupal 8

interface LanguageManagerInterface

Common interface for the language manager service.

Hierarchy

File

core/lib/Drupal/Core/Language/LanguageManagerInterface.php, line 10

Namespace

Drupal\Core\Language

Members

Name Modifiers Type Description
LanguageManagerInterface::getConfigOverrideLanguage public function Gets the current configuration override language.
LanguageManagerInterface::getCurrentLanguage public function Returns the current language for the given type.
LanguageManagerInterface::getDefaultLanguage public function Returns a language object representing the site's default language.
LanguageManagerInterface::getDefaultLockedLanguages public function Returns a list of the default locked languages.
LanguageManagerInterface::getDefinedLanguageTypesInfo public function Returns information about all defined language types.
LanguageManagerInterface::getFallbackCandidates public function Returns the language fallback candidates for a given context.
LanguageManagerInterface::getLanguage public function Returns a language object from the given language code.
LanguageManagerInterface::getLanguageName public function Produced the printed name for a language for display.
LanguageManagerInterface::getLanguages public function Returns a list of languages set up on the site.
LanguageManagerInterface::getLanguageSwitchLinks public function Returns the language switch links for the given language type.
LanguageManagerInterface::getLanguageTypes public function Returns an array of the available language types.
LanguageManagerInterface::getNativeLanguages public function Returns a list of languages set up on the site in their native form.
LanguageManagerInterface::getStandardLanguageList public static function Some common languages with their English and native names.
LanguageManagerInterface::isLanguageLocked public function Checks whether a language is locked.
LanguageManagerInterface::isMultilingual public function Returns whether or not the site has more than one language added.
LanguageManagerInterface::reset public function Resets the given language type or all types if none specified.
LanguageManagerInterface::setConfigOverrideLanguage public function Sets the configuration override language.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Language!LanguageManagerInterface.php/interface/LanguageManagerInterface/8.1.x