Search for getCurrentLanguage

  1. Search 7.x for getCurrentLanguage
  2. Search 9.5.x for getCurrentLanguage
  3. Search 8.9.x for getCurrentLanguage
  4. Search 10.3.x for getCurrentLanguage
  5. Other projects
Title Object type File name Summary
ConfigurableLanguageManager::getCurrentLanguage function core/modules/language/src/ConfigurableLanguageManager.php
LanguageManager::getCurrentLanguage function core/lib/Drupal/Core/Language/LanguageManager.php
LanguageManagerInterface::getCurrentLanguage function core/lib/Drupal/Core/Language/LanguageManagerInterface.php Returns the current language for the given type.
RouteProvider::getCurrentLanguageCacheIdPart function core/lib/Drupal/Core/Routing/RouteProvider.php Returns the language identifier for the route collection cache.

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