Commit e9334689 authored by catch's avatar catch

Issue #2936525 by priya.chat, benjifisher: Confusing documentation for setConfigOverrideLanguage()

parent e814d6fb
......@@ -351,12 +351,17 @@ public static function getUnitedNationsLanguageList() {
}
/**
* {@inheritdoc}
* 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.
*
* @param \Drupal\Core\Language\LanguageInterface $language
* The language to override configuration with.
*
* @return $this
*
* @see \Drupal\language\ConfigurableLanguageManager::setConfigOverrideLanguage()
*/
public function setConfigOverrideLanguage(LanguageInterface $language = NULL) {
......
......@@ -426,7 +426,12 @@ public function getLanguageSwitchLinks($type, Url $url) {
}
/**
* {@inheritdoc}
* Sets the configuration override language.
*
* @param \Drupal\Core\Language\LanguageInterface $language
* The language to override configuration with.
*
* @return $this
*/
public function setConfigOverrideLanguage(LanguageInterface $language = NULL) {
$this->configFactoryOverride->setLanguage($language);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment