public function ConfigurableLanguageManager::getConfigOverrideLanguage in Drupal 9
Same name and namespace in other branches
- 8 core/modules/language/src/ConfigurableLanguageManager.php \Drupal\language\ConfigurableLanguageManager::getConfigOverrideLanguage()
Gets the current configuration override language.
Return value
\Drupal\Core\Language\LanguageInterface The current configuration override language.
Overrides LanguageManager::getConfigOverrideLanguage
2 calls to ConfigurableLanguageManager::getConfigOverrideLanguage()
- ConfigurableLanguageManager::getLanguages in core/
modules/ language/ src/ ConfigurableLanguageManager.php - Returns a list of languages set up on the site.
- ConfigurableLanguageManager::getNativeLanguages in core/
modules/ language/ src/ ConfigurableLanguageManager.php - Returns a list of languages set up on the site in their native form.
File
- core/
modules/ language/ src/ ConfigurableLanguageManager.php, line 444
Class
- ConfigurableLanguageManager
- Overrides default LanguageManager to provide configured languages.
Namespace
Drupal\languageCode
public function getConfigOverrideLanguage() {
return $this->configFactoryOverride
->getLanguage();
}