public function LanguageManager::setConfigOverrideLanguage in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::setConfigOverrideLanguage()
- 9 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
See also
\Drupal\language\ConfigurableLanguageManager::setConfigOverrideLanguage()
File
- core/
lib/ Drupal/ Core/ Language/ LanguageManager.php, line 371
Class
- LanguageManager
- Class responsible for providing language support on language-unaware sites.
Namespace
Drupal\Core\LanguageCode
public function setConfigOverrideLanguage(LanguageInterface $language = NULL) {
return $this;
}