Search for getLanguages

  1. Search 7.x for getLanguages
  2. Search 9.5.x for getLanguages
  3. Search 8.9.x for getLanguages
  4. Search 10.3.x for getLanguages
  5. Other projects
Title Object type File name Summary
ConfigurableLanguageManager::getLanguages function core/modules/language/src/ConfigurableLanguageManager.php Returns a list of languages set up on the site.
ConfigurableLanguageManager::getLanguageSwitchLinks function core/modules/language/src/ConfigurableLanguageManager.php Returns the language switch links for the given language type.
ContentEntityBase::getLanguages function core/lib/Drupal/Core/Entity/ContentEntityBase.php
LanguageManager::getLanguages function core/lib/Drupal/Core/Language/LanguageManager.php Returns a list of languages set up on the site.
LanguageManager::getLanguageSwitchLinks function core/lib/Drupal/Core/Language/LanguageManager.php Returns the language switch links for the given language type.
LanguageManagerInterface::getLanguages function core/lib/Drupal/Core/Language/LanguageManagerInterface.php Returns a list of languages set up on the site.
LanguageManagerInterface::getLanguageSwitchLinks function core/lib/Drupal/Core/Language/LanguageManagerInterface.php Returns the language switch links for the given language type.
LanguageNegotiationContentEntity::getLanguageSwitchLinks function core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationContentEntity.php
LanguageNegotiationContentEntityTest::testGetLanguageSwitchLinks function core/modules/language/tests/src/Unit/Plugin/LanguageNegotiation/LanguageNegotiationContentEntityTest.php @covers ::getLanguageSwitchLinks
LanguageNegotiationSession::getLanguageSwitchLinks function core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationSession.php
LanguageNegotiationUrl::getLanguageSwitchLinks function core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationUrl.php
LanguageSwitcherInterface::getLanguageSwitchLinks function core/modules/language/src/LanguageSwitcherInterface.php Returns language switch links.
LocaleConfigurableLanguageManagerTest::testGetLanguages function core/modules/locale/tests/src/Kernel/LocaleConfigurableLanguageManagerTest.php
UserAgentTest::getLanguages function core/tests/Drupal/Tests/Component/Utility/UserAgentTest.php Helper method to supply language codes to testGetBestMatchingLangcode().

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