Search for getTranslation

  1. Search 7.x for getTranslation
  2. Search 9.5.x for getTranslation
  3. Search 8.9.x for getTranslation
  4. Search 10.3.x for getTranslation
  5. Other projects
Title Object type File name Summary
ConfigTranslationUiTestBase::getTranslation function core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTestBase.php Gets translation from locale storage.
ContentEntityBase::getTranslation function core/lib/Drupal/Core/Entity/ContentEntityBase.php
ContentEntityBase::getTranslationLanguages function core/lib/Drupal/Core/Entity/ContentEntityBase.php
ContentEntityBase::getTranslationStatus function core/lib/Drupal/Core/Entity/ContentEntityBase.php Returns the translation status.
ContentTranslationHandler::getTranslationAccess function core/modules/content_translation/src/ContentTranslationHandler.php Checks that the user can perform the operation on the entity translation.
ContentTranslationHandlerInterface::getTranslationAccess function core/modules/content_translation/src/ContentTranslationHandlerInterface.php Checks that the user can perform the operation on the entity translation.
ContentTranslationManager::getTranslationHandler function core/modules/content_translation/src/ContentTranslationManager.php
ContentTranslationManager::getTranslationMetadata function core/modules/content_translation/src/ContentTranslationManager.php
ContentTranslationManagerInterface::getTranslationHandler function core/modules/content_translation/src/ContentTranslationManagerInterface.php Returns an instance of the Content translation handler.
ContentTranslationManagerInterface::getTranslationMetadata function core/modules/content_translation/src/ContentTranslationManagerInterface.php Returns an instance of the Content translation metadata.
ContentTranslationUITestBase::getTranslation function core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php Returns the translation object to use to retrieve the translated values.
DateFormat::getTranslationElement function core/modules/config_translation/src/FormElement/DateFormat.php Returns the translation form element for a given configuration definition.
ElementInterface::getTranslationBuild function core/modules/config_translation/src/FormElement/ElementInterface.php Builds a render array containing the source and translation form elements.
EntityRepository::getTranslationFromContext function core/lib/Drupal/Core/Entity/EntityRepository.php Gets the entity translation to be used in the given context.
EntityRepositoryInterface::getTranslationFromContext function core/lib/Drupal/Core/Entity/EntityRepositoryInterface.php Gets the entity translation to be used in the given context.
EntityRepositoryTest::testGetTranslationFromContext function core/tests/Drupal/Tests/Core/Entity/EntityRepositoryTest.php Tests the getTranslationFromContext() method.
FileTranslation::getTranslationFilesPattern function core/lib/Drupal/Core/StringTranslation/Translator/FileTranslation.php Provides translation file name pattern.
FormElementBase::getTranslationBuild function core/modules/config_translation/src/FormElement/FormElementBase.php Builds a render array containing the source and translation form elements.
FormElementBase::getTranslationElement function core/modules/config_translation/src/FormElement/FormElementBase.php Returns the translation form element for a given configuration definition.
ListElement::getTranslationBuild function core/modules/config_translation/src/FormElement/ListElement.php Builds a render array containing the source and translation form elements.
PluralVariants::getTranslationElement function core/modules/config_translation/src/FormElement/PluralVariants.php Returns the translation form element for a given configuration definition.
PoItem::getTranslation function core/lib/Drupal/Component/Gettext/PoItem.php Gets the translation string(s) if the translation has plurals.
StringDatabaseStorage::getTranslations function core/modules/locale/src/StringDatabaseStorage.php
StringStorageInterface::getTranslations function core/modules/locale/src/StringStorageInterface.php Loads multiple string translation objects.
Textarea::getTranslationElement function core/modules/config_translation/src/FormElement/Textarea.php Returns the translation form element for a given configuration definition.
Textfield::getTranslationElement function core/modules/config_translation/src/FormElement/Textfield.php Returns the translation form element for a given configuration definition.
TextFormat::getTranslationElement function core/modules/config_translation/src/FormElement/TextFormat.php Returns the translation form element for a given configuration definition.
TranslatableInterface::getTranslation function core/lib/Drupal/Core/TypedData/TranslatableInterface.php Gets a translation of the data.
TranslatableInterface::getTranslationLanguages function core/lib/Drupal/Core/TypedData/TranslatableInterface.php Returns the languages the data is translated to.
TranslationStatusInterface::getTranslationStatus function core/lib/Drupal/Core/TypedData/TranslationStatusInterface.php Returns the translation status.

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