You are here

public function ConfigurableLanguageManager::setConfigOverrideLanguage in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/language/src/ConfigurableLanguageManager.php \Drupal\language\ConfigurableLanguageManager::setConfigOverrideLanguage()

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.

Overrides LanguageManager::setConfigOverrideLanguage

See also

\Drupal\language\ConfigurableLanguageManager::setConfigOverrideLanguage()

1 call to ConfigurableLanguageManager::setConfigOverrideLanguage()
ConfigurableLanguageManager::getNativeLanguages in core/modules/language/src/ConfigurableLanguageManager.php
Returns a list of languages set up on the site in their native form.

File

core/modules/language/src/ConfigurableLanguageManager.php, line 436
Contains \Drupal\language\ConfigurableLanguageManager.

Class

ConfigurableLanguageManager
Overrides default LanguageManager to provide configured languages.

Namespace

Drupal\language

Code

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