public LanguageConfigFactoryOverride::setLanguageFromDefault(LanguageDefault $language_default = NULL)
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 144
Class
- LanguageConfigFactoryOverride
- Provides language overrides for the configuration factory.
Namespace
Drupal\language\Config
Code
public function setLanguageFromDefault(LanguageDefault $language_default = NULL) { $this->language = $language_default ? $language_default->get() : NULL; return $this; }
Please login to continue.