function LanguageConfigFactoryOverrideInterface::setLanguage

Same name in other branches
  1. 8.9.x core/modules/language/src/Config/LanguageConfigFactoryOverrideInterface.php \Drupal\language\Config\LanguageConfigFactoryOverrideInterface::setLanguage()
  2. 10 core/modules/language/src/Config/LanguageConfigFactoryOverrideInterface.php \Drupal\language\Config\LanguageConfigFactoryOverrideInterface::setLanguage()
  3. 11.x core/modules/language/src/Config/LanguageConfigFactoryOverrideInterface.php \Drupal\language\Config\LanguageConfigFactoryOverrideInterface::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

1 method overrides LanguageConfigFactoryOverrideInterface::setLanguage()
LanguageConfigFactoryOverride::setLanguage in core/modules/language/src/Config/LanguageConfigFactoryOverride.php
Sets the language to be used in configuration overrides.

File

core/modules/language/src/Config/LanguageConfigFactoryOverrideInterface.php, line 29

Class

LanguageConfigFactoryOverrideInterface
Defines the interface for a configuration factory language override object.

Namespace

Drupal\language\Config

Code

public function setLanguage(LanguageInterface $language = NULL);

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