Search for %s

  1. Search 7.x for %s
  2. Search 9.5.x for %s
  3. Search 8.9.x for %s
  4. Search 11.x for %s
  5. Search main for %s
  6. Other projects
Title Object type File name Summary
TranslationInterface::translate function core/lib/Drupal/Core/StringTranslation/TranslationInterface.php Translates a string to the current language or to a given language.
TranslationInterface::translateString function core/lib/Drupal/Core/StringTranslation/TranslationInterface.php Translates a TranslatableMarkup object to a string.
TranslationLanguageRenderer class core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php Renders entity translations in their row language.
TranslationLanguageRenderer.php file core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php
TranslationLanguageRenderer::$langcodeAlias property core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php Stores the field alias of the langcode column.
TranslationLanguageRenderer::getCacheContexts function core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php The cache contexts associated with this object.
TranslationLanguageRenderer::getLangcode function core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php Returns the language code associated with the given row.
TranslationLanguageRenderer::getLangcodeTable function core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php Returns the name of the table holding the "langcode" field.
TranslationLanguageRenderer::preRenderByRelationship function core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php Runs before each entity is rendered if a relationship is needed.
TranslationLanguageRenderer::query function core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php Alters the query if needed.
TranslationLanguageRenderer::renderByRelationship function core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php Renders entity data.
TranslationLink class core/modules/content_translation/src/Plugin/views/field/TranslationLink.php Provides a translation link for an entity.
TranslationLink.php file core/modules/content_translation/src/Plugin/views/field/TranslationLink.php
TranslationLink::getDefaultLabel function core/modules/content_translation/src/Plugin/views/field/TranslationLink.php Returns the default label for this link.
TranslationLink::getEntityLinkTemplate function core/modules/content_translation/src/Plugin/views/field/TranslationLink.php Returns the entity link template name identifying the link route.
TranslationLinkTest class core/modules/content_translation/tests/src/Functional/Views/TranslationLinkTest.php Tests the content translation overview link field handler.
TranslationLinkTest.php file core/modules/content_translation/tests/src/Functional/Views/TranslationLinkTest.php
TranslationLinkTest::$defaultTheme property core/modules/content_translation/tests/src/Functional/Views/TranslationLinkTest.php The theme to install as the default for testing.
TranslationLinkTest::$modules property core/modules/content_translation/tests/src/Functional/Views/TranslationLinkTest.php Modules to install.
TranslationLinkTest::$testViews property core/modules/content_translation/tests/src/Functional/Views/TranslationLinkTest.php Views used by this test.
TranslationLinkTest::getTranslatorPermissions function core/modules/content_translation/tests/src/Functional/Views/TranslationLinkTest.php Returns an array of permissions needed for the translator.
TranslationLinkTest::setUp function core/modules/content_translation/tests/src/Functional/Views/TranslationLinkTest.php
TranslationLinkTest::testTranslationLink function core/modules/content_translation/tests/src/Functional/Views/TranslationLinkTest.php Tests the content translation overview link field handler.
TranslationManager class core/lib/Drupal/Core/StringTranslation/TranslationManager.php Defines a chained translation implementation combining multiple translators.
TranslationManager.php file core/lib/Drupal/Core/StringTranslation/TranslationManager.php
TranslationManager::$defaultLangcode property core/lib/Drupal/Core/StringTranslation/TranslationManager.php The default langcode used in translations.
TranslationManager::$sortedTranslators property core/lib/Drupal/Core/StringTranslation/TranslationManager.php An array of translators, sorted by priority.
TranslationManager::$translators property core/lib/Drupal/Core/StringTranslation/TranslationManager.php An unsorted array of arrays of active translators.
TranslationManager::addTranslator function core/lib/Drupal/Core/StringTranslation/TranslationManager.php Appends a translation system to the translation chain.
TranslationManager::doTranslate function core/lib/Drupal/Core/StringTranslation/TranslationManager.php Translates a string to the current language or to a given language.
TranslationManager::formatPlural function core/lib/Drupal/Core/StringTranslation/TranslationManager.php Formats a string containing a count of items.
TranslationManager::getStringTranslation function core/lib/Drupal/Core/StringTranslation/TranslationManager.php Retrieves English string to given language.
TranslationManager::reset function core/lib/Drupal/Core/StringTranslation/TranslationManager.php Resets translation cache.
TranslationManager::setDefaultLangcode function core/lib/Drupal/Core/StringTranslation/TranslationManager.php Sets the default langcode.
TranslationManager::sortTranslators function core/lib/Drupal/Core/StringTranslation/TranslationManager.php Sorts translators according to priority.
TranslationManager::translate function core/lib/Drupal/Core/StringTranslation/TranslationManager.php Translates a string to the current language or to a given language.
TranslationManager::translateString function core/lib/Drupal/Core/StringTranslation/TranslationManager.php Translates a TranslatableMarkup object to a string.
TranslationManager::__construct function core/lib/Drupal/Core/StringTranslation/TranslationManager.php Constructs a TranslationManager object.
TranslationManagerTest class core/tests/Drupal/Tests/Core/StringTranslation/TranslationManagerTest.php @coversDefaultClass \Drupal\Core\StringTranslation\TranslationManager[[api-linebreak]]
@group StringTranslation
TranslationManagerTest.php file core/tests/Drupal/Tests/Core/StringTranslation/TranslationManagerTest.php
TranslationManagerTest::$translationManager property core/tests/Drupal/Tests/Core/StringTranslation/TranslationManagerTest.php The tested translation manager.
TranslationManagerTest::providerTestFormatPlural function core/tests/Drupal/Tests/Core/StringTranslation/TranslationManagerTest.php Provides some test data for formatPlural()
TranslationManagerTest::providerTestTranslatePlaceholder function core/tests/Drupal/Tests/Core/StringTranslation/TranslationManagerTest.php Provides test data for translate().
TranslationManagerTest::setUp function core/tests/Drupal/Tests/Core/StringTranslation/TranslationManagerTest.php
TranslationManagerTest::testFormatPlural function core/tests/Drupal/Tests/Core/StringTranslation/TranslationManagerTest.php @dataProvider providerTestFormatPlural
TranslationManagerTest::testTranslatePlaceholder function core/tests/Drupal/Tests/Core/StringTranslation/TranslationManagerTest.php Tests translation using placeholders.
TranslationsStream class core/modules/locale/src/StreamWrapper/TranslationsStream.php Defines a Drupal translations (translations://) stream wrapper class.
TranslationsStream.php file core/modules/locale/src/StreamWrapper/TranslationsStream.php
TranslationsStream::getDescription function core/modules/locale/src/StreamWrapper/TranslationsStream.php Returns the description of the stream wrapper for use in the UI.
TranslationsStream::getDirectoryPath function core/modules/locale/src/StreamWrapper/TranslationsStream.php Gets the path that the wrapper is responsible for.

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