summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2018-01-22 15:41:15 (GMT)
committerNathaniel Catchpole2018-01-22 15:41:15 (GMT)
commite9334689fa018857d68be651bebafcb5b3241b95 (patch)
tree31a21e139be3cdb2bfc6ef80e5e72d344c6d6858
parente814d6fba8773915a0676553aad419651d988f94 (diff)
Issue #2936525 by priya.chat, benjifisher: Confusing documentation for setConfigOverrideLanguage()
-rw-r--r--core/lib/Drupal/Core/Language/LanguageManager.php7
-rw-r--r--core/modules/language/src/ConfigurableLanguageManager.php7
2 files changed, 12 insertions, 2 deletions
diff --git a/core/lib/Drupal/Core/Language/LanguageManager.php b/core/lib/Drupal/Core/Language/LanguageManager.php
index f4804ca..c0177df 100644
--- a/core/lib/Drupal/Core/Language/LanguageManager.php
+++ b/core/lib/Drupal/Core/Language/LanguageManager.php
@@ -351,12 +351,17 @@ class LanguageManager implements LanguageManagerInterface {
}
/**
- * {@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) {
diff --git a/core/modules/language/src/ConfigurableLanguageManager.php b/core/modules/language/src/ConfigurableLanguageManager.php
index de64c44..13079f8 100644
--- a/core/modules/language/src/ConfigurableLanguageManager.php
+++ b/core/modules/language/src/ConfigurableLanguageManager.php
@@ -426,7 +426,12 @@ class ConfigurableLanguageManager extends LanguageManager implements Configurabl
}
/**
- * {@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);