public function LanguageConfigFactoryOverride::setLanguage in Drupal 10
Same name and namespace in other branches
- 8 core/modules/language/src/Config/LanguageConfigFactoryOverride.php \Drupal\language\Config\LanguageConfigFactoryOverride::setLanguage()
- 9 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
Class
- LanguageConfigFactoryOverride
- Provides language overrides for the configuration factory.
Namespace
Drupal\language\ConfigCode
public function setLanguage(LanguageInterface $language = NULL) {
$this->language = $language;
return $this;
}