public function LanguageConfigFactoryOverrideInterface::setLanguage in Drupal 9
Same name and namespace in other branches
- 8 core/modules/language/src/Config/LanguageConfigFactoryOverrideInterface.php \Drupal\language\Config\LanguageConfigFactoryOverrideInterface::setLanguage()
- 10 core/modules/language/src/Config/LanguageConfigFactoryOverrideInterface.php \Drupal\language\Config\LanguageConfigFactoryOverrideInterface::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
1 method overrides LanguageConfigFactoryOverrideInterface::setLanguage()
- LanguageConfigFactoryOverride::setLanguage in core/
modules/ language/ src/ Config/ LanguageConfigFactoryOverride.php - Sets the language to be used in configuration overrides.
File
- core/
modules/ language/ src/ Config/ LanguageConfigFactoryOverrideInterface.php, line 29
Class
- LanguageConfigFactoryOverrideInterface
- Defines the interface for a configuration factory language override object.
Namespace
Drupal\language\ConfigCode
public function setLanguage(LanguageInterface $language = NULL);