You are here

public function LanguageConfigFactoryOverride::setLanguage in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/language/src/Config/LanguageConfigFactoryOverride.php \Drupal\language\Config\LanguageConfigFactoryOverride::setLanguage()

Sets the language to be used in configuration overrides.

Parameters

\Drupal\Core\Language\LanguageInterface $language: The language object used to override configuration data.

Return value

$this

Overrides LanguageConfigFactoryOverrideInterface::setLanguage

File

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

Class

LanguageConfigFactoryOverride
Provides language overrides for the configuration factory.

Namespace

Drupal\language\Config

Code

public function setLanguage(LanguageInterface $language = NULL) {
  $this->language = $language;
  return $this;
}