function LanguageConfigFactoryOverrideInterface::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
Deprecated
in drupal:8.3.0 and is removed from drupal:9.0.0. This method has been replaced by injecting the default language into the constructor.
1 method overrides LanguageConfigFactoryOverrideInterface::setLanguageFromDefault()
- LanguageConfigFactoryOverride::setLanguageFromDefault in core/
modules/ language/ src/ Config/ LanguageConfigFactoryOverride.php - Sets the language to be used in configuration overrides from the default.
File
-
core/
modules/ language/ src/ Config/ LanguageConfigFactoryOverrideInterface.php, line 44
Class
- LanguageConfigFactoryOverrideInterface
- Defines the interface for a configuration factory language override object.
Namespace
Drupal\language\ConfigCode
public function setLanguageFromDefault(LanguageDefault $language_default = NULL);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.