You are here

public function LanguageManager::getCurrentLanguage in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getCurrentLanguage()
  2. 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\Language

Code

public function getCurrentLanguage($type = LanguageInterface::TYPE_INTERFACE) {
  return $this
    ->getDefaultLanguage();
}