Search for stringTranslation

  1. Search 7.x for stringTranslation
  2. Search 9.5.x for stringTranslation
  3. Search 8.9.x for stringTranslation
  4. Search 10.3.x for stringTranslation
  5. Other projects
Title Object type File name Summary
BookManager::setStringTranslation function core/modules/book/src/ProxyClass/BookManager.php
BookUninstallValidator::setStringTranslation function core/modules/book/src/ProxyClass/BookUninstallValidator.php
BreakpointTest::$stringTranslation property core/modules/breakpoint/tests/src/Unit/BreakpointTest.php The mocked translator.
CommentLinkBuilderTest::$stringTranslation property core/modules/comment/tests/src/Unit/CommentLinkBuilderTest.php String translation mock.
ContentUninstallValidator::setStringTranslation function core/lib/Drupal/Core/ProxyClass/Entity/ContentUninstallValidator.php
ContextualLinkDefaultTest::$stringTranslation property core/tests/Drupal/Tests/Core/Menu/ContextualLinkDefaultTest.php The mocked translator.
DatabaseDriverUninstallValidator::setStringTranslation function core/lib/Drupal/Core/ProxyClass/Extension/DatabaseDriverUninstallValidator.php
DateTest::$stringTranslation property core/tests/Drupal/Tests/Core/Datetime/DateTest.php The mocked string translation.
EntityFormInterface::setStringTranslation function core/lib/Drupal/Core/Entity/EntityFormInterface.php Sets the string translation service for this form.
EntityTypeManager::$stringTranslation property core/lib/Drupal/Core/Entity/EntityTypeManager.php The string translation service.
FieldUninstallValidator::setStringTranslation function core/modules/field/src/ProxyClass/FieldUninstallValidator.php
FilterUninstallValidator::setStringTranslation function core/modules/filter/src/ProxyClass/FilterUninstallValidator.php
FormAjaxSubscriberTest::$stringTranslation property core/tests/Drupal/Tests/Core/Form/EventSubscriber/FormAjaxSubscriberTest.php The mocked string translation.
ForumUninstallValidator::setStringTranslation function core/modules/forum/src/ProxyClass/ForumUninstallValidator.php
LocalActionDefaultTest::$stringTranslation property core/tests/Drupal/Tests/Core/Menu/LocalActionDefaultTest.php The mocked translator.
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
LocaleTranslationUiTest::testStringTranslation function core/modules/locale/tests/src/Functional/LocaleTranslationUiTest.php Adds a language and tests string translation by users with the appropriate permissions.
LocalTaskDefaultTest::$stringTranslation property core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php The mocked translator.
ModuleRequiredByThemesUninstallValidator::setStringTranslation function core/lib/Drupal/Core/ProxyClass/Extension/ModuleRequiredByThemesUninstallValidator.php
PermissionHandlerTest::$stringTranslation property core/modules/user/tests/src/Unit/PermissionHandlerTest.php The mocked string translation.
RequiredModuleUninstallValidator::setStringTranslation function core/lib/Drupal/Core/ProxyClass/Extension/RequiredModuleUninstallValidator.php
StaticTranslation::getStringTranslation function core/lib/Drupal/Core/StringTranslation/Translator/StaticTranslation.php
StringTranslationTrait trait core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php Wrapper methods for \Drupal\Core\StringTranslation\TranslationInterface.
StringTranslationTrait.php file core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php
StringTranslationTrait::$stringTranslation property core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php The string translation service.
StringTranslationTrait::formatPlural function core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals function core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation function core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php Gets the string translation service.
StringTranslationTrait::setStringTranslation function core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php Sets the string translation service to use.
StringTranslationTrait::t function core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php Translates a string to the current language or to a given language.
StringTranslationTraitTest class core/tests/Drupal/Tests/Core/StringTranslation/StringTranslationTraitTest.php @coversDefaultClass \Drupal\Core\StringTranslation\StringTranslationTrait
@group StringTranslation
StringTranslationTraitTest.php file core/tests/Drupal/Tests/Core/StringTranslation/StringTranslationTraitTest.php
StringTranslationTraitTest::$testObject property core/tests/Drupal/Tests/Core/StringTranslation/StringTranslationTraitTest.php The object under test that uses StringTranslationTrait.
StringTranslationTraitTest::setUp function core/tests/Drupal/Tests/Core/StringTranslation/StringTranslationTraitTest.php
StringTranslationTraitTest::testFormatPlural function core/tests/Drupal/Tests/Core/StringTranslation/StringTranslationTraitTest.php @covers ::formatPlural
StringTranslationTraitTest::testT function core/tests/Drupal/Tests/Core/StringTranslation/StringTranslationTraitTest.php @covers ::t
TestEntityForm::$stringTranslation property core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php
TestEntityHandlerBase::$stringTranslation property core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php
TestMigrateExecutable::setStringTranslation function core/modules/migrate/tests/src/Unit/TestMigrateExecutable.php Sets the string translation service.
TestPathBasedBreadcrumbBuilder::setStringTranslation function core/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php
TestRouteProvider::$stringTranslation property core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php
TranslatableMarkup::$stringTranslation property core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php 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
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.