Search for getStringTranslation

  1. Search 7.x for getStringTranslation
  2. Search 9.5.x for getStringTranslation
  3. Search 8.9.x for getStringTranslation
  4. Search 10.3.x for getStringTranslation
  5. Other projects
Title Object type File name Summary
LocaleConfigManager::getStringTranslation function core/modules/locale/src/LocaleConfigManager.php Get the translation object for the given source/context and language.
LocaleConfigManagerTest::testGetStringTranslation function core/modules/locale/tests/src/Kernel/LocaleConfigManagerTest.php Tests getStringTranslation().
LocaleTranslation::getStringTranslation function core/modules/locale/src/LocaleTranslation.php Retrieves English string to given language.
StaticTranslation::getStringTranslation function core/lib/Drupal/Core/StringTranslation/Translator/StaticTranslation.php
StringTranslationTrait::getStringTranslation function core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php Gets the string translation service.
TranslatableMarkup::getStringTranslation function core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php Gets the string translation service.
TranslationManager::getStringTranslation function core/lib/Drupal/Core/StringTranslation/TranslationManager.php Retrieves English string to given language.
TranslatorInterface::getStringTranslation function core/lib/Drupal/Core/StringTranslation/Translator/TranslatorInterface.php Retrieves English string to given language.
UnitTestCase::getStringTranslationStub function core/tests/Drupal/Tests/UnitTestCase.php Returns a stub translation manager that just returns the passed string.

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