function LanguageConfigFactoryOverride::setLanguageFromDefault

Overrides LanguageConfigFactoryOverrideInterface::setLanguageFromDefault

File

core/modules/language/src/Config/LanguageConfigFactoryOverride.php, line 149

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.