function LanguageManager::setConfigOverrideLanguage
Same name in other branches
- 9 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::setConfigOverrideLanguage()
- 10 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::setConfigOverrideLanguage()
- 11.x core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::setConfigOverrideLanguage()
Sets the configuration override language.
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.
Parameters
\Drupal\Core\Language\LanguageInterface $language: The language to override configuration with.
Return value
$this
Overrides LanguageManagerInterface::setConfigOverrideLanguage
See also
\Drupal\language\ConfigurableLanguageManager::setConfigOverrideLanguage()
1 method overrides LanguageManager::setConfigOverrideLanguage()
- ConfigurableLanguageManager::setConfigOverrideLanguage in core/
modules/ language/ src/ ConfigurableLanguageManager.php - Sets the configuration override language.
File
-
core/
lib/ Drupal/ Core/ Language/ LanguageManager.php, line 367
Class
- LanguageManager
- Class responsible for providing language support on language-unaware sites.
Namespace
Drupal\Core\LanguageCode
public function setConfigOverrideLanguage(LanguageInterface $language = NULL) {
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.