function ConfigurableLanguageManager::getConfigOverrideLanguage

Same name in other branches
  1. 9 core/modules/language/src/ConfigurableLanguageManager.php \Drupal\language\ConfigurableLanguageManager::getConfigOverrideLanguage()
  2. 8.9.x core/modules/language/src/ConfigurableLanguageManager.php \Drupal\language\ConfigurableLanguageManager::getConfigOverrideLanguage()
  3. 10 core/modules/language/src/ConfigurableLanguageManager.php \Drupal\language\ConfigurableLanguageManager::getConfigOverrideLanguage()

Overrides LanguageManager::getConfigOverrideLanguage

2 calls to ConfigurableLanguageManager::getConfigOverrideLanguage()
ConfigurableLanguageManager::getLanguages in core/modules/language/src/ConfigurableLanguageManager.php
Returns a list of languages set up on the site.
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 458

Class

ConfigurableLanguageManager
Overrides default LanguageManager to provide configured languages.

Namespace

Drupal\language

Code

public function getConfigOverrideLanguage() {
    return $this->configFactoryOverride
        ->getLanguage();
}

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