public function LanguageManager::getCurrentLanguage in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getCurrentLanguage()
- 9 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getCurrentLanguage()
File
- core/
lib/ Drupal/ Core/ Language/ LanguageManager.php, line 102
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();
}