public function LanguageConfigFactoryOverride::setLanguage in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/language/src/Config/LanguageConfigFactoryOverride.php \Drupal\language\Config\LanguageConfigFactoryOverride::setLanguage()
Sets the language to be used in configuration overrides.
Parameters
\Drupal\Core\Language\LanguageInterface $language: The language object used to override configuration data.
Return value
$this
Overrides LanguageConfigFactoryOverrideInterface::setLanguage
File
- core/
modules/ language/ src/ Config/ LanguageConfigFactoryOverride.php, line 141 - Contains \Drupal\language\Config\LanguageConfigFactoryOverride.
Class
- LanguageConfigFactoryOverride
- Provides language overrides for the configuration factory.
Namespace
Drupal\language\ConfigCode
public function setLanguage(LanguageInterface $language = NULL) {
$this->language = $language;
return $this;
}