You are here

public function LanguageManager::setConfigOverrideLanguage in Drupal 9

Same name and namespace in other branches
  1. 8 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 371

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