LanguageManager::$languages
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::languages
- 10 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::languages
- 11.x core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::languages
A static cache of translated language lists.
Array of arrays to cache the result of self::getLanguages() keyed by the language the list is translated to (first level) and the flags provided to the method (second level).
Type: \Drupal\Core\Language\LanguageInterface[]
See also
\Drupal\Core\Language\LanguageManager::getLanguages()
File
-
core/
lib/ Drupal/ Core/ Language/ LanguageManager.php, line 26
Class
- LanguageManager
- Class responsible for providing language support on language-unaware sites.
Namespace
Drupal\Core\LanguageCode
protected $languages = [];
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.