Search for getLanguage

  1. Search 7.x for getLanguage
  2. Search 8.9.x for getLanguage
  3. Search 10.3.x for getLanguage
  4. Search 11.x for getLanguage
  5. Other projects
Title Object type File name Summary
BulkForm::getLanguageManager function core/modules/views/src/Plugin/views/field/BulkForm.php Returns the language manager.
ConfigModuleOverridesEvent::getLanguage function core/lib/Drupal/Core/Config/ConfigModuleOverridesEvent.php Gets configuration language.
ConfigTranslationUiTest::testSourceAndTargetLanguage function core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php Tests source and target language edge cases.
ConfigurableLanguageManager::getLanguageConfigOverride function core/modules/language/src/ConfigurableLanguageManager.php Gets a language config override object.
ConfigurableLanguageManager::getLanguageConfigOverrideStorage function core/modules/language/src/ConfigurableLanguageManager.php Gets a language configuration override storage object.
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.
ConfigurableLanguageManager::getLanguageTypes function core/modules/language/src/ConfigurableLanguageManager.php Returns an array of the available language types.
ConfigurableLanguageManagerInterface::getLanguageConfigOverride function core/modules/language/src/ConfigurableLanguageManagerInterface.php Gets a language config override object.
ConfigurableLanguageManagerInterface::getLanguageConfigOverrideStorage function core/modules/language/src/ConfigurableLanguageManagerInterface.php Gets a language configuration override storage object.
ContentEntityBase::getLanguages function core/lib/Drupal/Core/Entity/ContentEntityBase.php
CustomStrings::getLanguage function core/lib/Drupal/Core/StringTranslation/Translator/CustomStrings.php Retrieves translations for a given language.
DataEntityRow::getLanguageManager function core/modules/rest/src/Plugin/views/row/DataEntityRow.php Returns the language manager.
EntityFieldRenderer::getLanguageManager function core/modules/views/src/Entity/Render/EntityFieldRenderer.php Returns the language manager.
EntityOperations::getLanguageManager function core/modules/views/src/Plugin/views/field/EntityOperations.php Returns the language manager.
EntityRepositoryTest::getLanguageContexts function core/tests/Drupal/KernelTests/Core/Entity/EntityRepositoryTest.php Returns a set of language contexts matching the specified language.
EntityRow::getLanguageManager function core/modules/views/src/Plugin/views/row/EntityRow.php Returns the language manager.
EntityTranslationRenderTrait::getLanguageManager function core/modules/views/src/Entity/Render/EntityTranslationRenderTrait.php Returns the language manager.
FileTranslation::getLanguage function core/lib/Drupal/Core/StringTranslation/Translator/FileTranslation.php Retrieves translations for a given language.
LanguageConfigFactoryOverride::getLanguage function core/modules/language/src/Config/LanguageConfigFactoryOverride.php Gets the language object used to override configuration data.
LanguageConfigFactoryOverrideInterface::getLanguage function core/modules/language/src/Config/LanguageConfigFactoryOverrideInterface.php Gets the language object used to override configuration data.
LanguageConfigOverrideCrudEvent::getLanguageConfigOverride function core/modules/language/src/Config/LanguageConfigOverrideCrudEvent.php Gets configuration object.
LanguageLocalTasksTest::getLanguageAdminOverviewRoutes function core/modules/language/tests/src/Unit/Menu/LanguageLocalTasksTest.php Provides a list of routes to test.
LanguageManager::getLanguage function core/lib/Drupal/Core/Language/LanguageManager.php Returns a language object from the given language code.
LanguageManager::getLanguageName function core/lib/Drupal/Core/Language/LanguageManager.php Produced the printed name for a language for display.
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.
LanguageManager::getLanguageTypes function core/lib/Drupal/Core/Language/LanguageManager.php Returns an array of the available language types.
LanguageManagerInterface::getLanguage function core/lib/Drupal/Core/Language/LanguageManagerInterface.php Returns a language object from the given language code.
LanguageManagerInterface::getLanguageName function core/lib/Drupal/Core/Language/LanguageManagerInterface.php Produced the printed name for a language for display.
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.
LanguageManagerInterface::getLanguageTypes function core/lib/Drupal/Core/Language/LanguageManagerInterface.php Returns an array of the available language types.
LanguageNegotiationContentEntity::getLanguageSwitchLinks function core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationContentEntity.php Returns language switch links.
LanguageNegotiationSession::getLanguageSwitchLinks function core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationSession.php Returns language switch links.
LanguageNegotiationUrl::getLanguageSwitchLinks function core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationUrl.php Returns language switch links.
LanguageSwitcherInterface::getLanguageSwitchLinks function core/modules/language/src/LanguageSwitcherInterface.php Returns language switch links.
LinkBase::getLanguageManager function core/modules/views/src/Plugin/views/field/LinkBase.php Returns the language manager.
LocaleConfigurableLanguageManagerTest::testGetLanguages function core/modules/locale/tests/src/Kernel/LocaleConfigurableLanguageManagerTest.php
PoHeader::getLanguageName function core/lib/Drupal/Component/Gettext/PoHeader.php Gets the human readable language name.
RenderedEntity::getLanguageManager function core/modules/views/src/Plugin/views/field/RenderedEntity.php Returns the language manager.
ResourceObject::getLanguage function core/modules/jsonapi/src/JsonApiResource/ResourceObject.php Gets the ResourceObject's language.
StaticTranslation::getLanguage function core/lib/Drupal/Core/StringTranslation/Translator/StaticTranslation.php Retrieves translations for a given language.
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.