You are here

public function LanguageManager::setConfigOverrideLanguage in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::setConfigOverrideLanguage()
  2. 10 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::setConfigOverrideLanguage()

Sets the configuration override language.

This function is a noop since the configuration cannot be overridden by language unless the Language module is enabled. That replaces the default language manager with a configurable language manager.

Parameters

\Drupal\Core\Language\LanguageInterface $language: The language to override configuration with.

Return value

$this

Overrides LanguageManagerInterface::setConfigOverrideLanguage

See also

\Drupal\language\ConfigurableLanguageManager::setConfigOverrideLanguage()

1 method overrides LanguageManager::setConfigOverrideLanguage()
ConfigurableLanguageManager::setConfigOverrideLanguage in core/modules/language/src/ConfigurableLanguageManager.php
Sets the configuration override language.

File

core/lib/Drupal/Core/Language/LanguageManager.php, line 367

Class

LanguageManager
Class responsible for providing language support on language-unaware sites.

Namespace

Drupal\Core\Language

Code

public function setConfigOverrideLanguage(LanguageInterface $language = NULL) {
  return $this;
}