public function LanguageConfigFactoryOverrideInterface::setLanguageFromDefault in Drupal 8
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);