function LanguageManager::getCurrentLanguage
Same name in other branches
- 9 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getCurrentLanguage()
- 8.9.x core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getCurrentLanguage()
- 10 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getCurrentLanguage()
Overrides LanguageManagerInterface::getCurrentLanguage
1 call to LanguageManager::getCurrentLanguage()
- LanguageManager::getConfigOverrideLanguage in core/
lib/ Drupal/ Core/ Language/ LanguageManager.php - Gets the current configuration override language.
1 method overrides LanguageManager::getCurrentLanguage()
- ConfigurableLanguageManager::getCurrentLanguage in core/
modules/ language/ src/ ConfigurableLanguageManager.php
File
-
core/
lib/ Drupal/ Core/ Language/ LanguageManager.php, line 107
Class
- LanguageManager
- Class responsible for providing language support on language-unaware sites.
Namespace
Drupal\Core\LanguageCode
public function getCurrentLanguage($type = LanguageInterface::TYPE_INTERFACE) {
return $this->getDefaultLanguage();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.