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