Search for translatable

  1. Search 7.x for translatable
  2. Search 9.5.x for translatable
  3. Search 8.9.x for translatable
  4. Search 10.3.x for translatable
  5. Other projects
Title Object type File name Summary
RevisionVersionHistoryTranslatableTest::$modules property core/tests/Drupal/FunctionalTests/Entity/RevisionVersionHistoryTranslatableTest.php Modules to install.
RevisionVersionHistoryTranslatableTest::setUp function core/tests/Drupal/FunctionalTests/Entity/RevisionVersionHistoryTranslatableTest.php
RevisionVersionHistoryTranslatableTest::testVersionHistoryTranslations function core/tests/Drupal/FunctionalTests/Entity/RevisionVersionHistoryTranslatableTest.php Tests the version history page for translations.
SqlContentEntityStorageSchemaTest::testGetSchemaRevisionableTranslatable function core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php Tests the schema for revisionable, translatable entities.
SqlContentEntityStorageSchemaTest::testGetSchemaTranslatable function core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php Tests the schema for non-revisionable, translatable entities.
SqlContentEntityStorageTest::testGetTableMappingRevisionableTranslatable function core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php Tests getTableMapping() with a revisionable, translatable entity type.
SqlContentEntityStorageTest::testGetTableMappingRevisionableTranslatableWithFields function core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php Tests getTableMapping() with a complex entity type with fields.
SqlContentEntityStorageTest::testGetTableMappingTranslatable function core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php Tests getTableMapping() with a non-revisionable, translatable entity type.
SqlContentEntityStorageTest::testGetTableMappingTranslatableWithFields function core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php Tests getTableMapping() with a translatable entity type with fields.
TranslatableFieldTest class core/modules/layout_builder/tests/src/Kernel/TranslatableFieldTest.php Tests Layout Builder with a translatable layout field.
TranslatableFieldTest.php file core/modules/layout_builder/tests/src/Kernel/TranslatableFieldTest.php
TranslatableFieldTest::$modules property core/modules/layout_builder/tests/src/Kernel/TranslatableFieldTest.php Modules to install.
TranslatableFieldTest::setUp function core/modules/layout_builder/tests/src/Kernel/TranslatableFieldTest.php
TranslatableFieldTest::testSectionsClearedOnCreateTranslation function core/modules/layout_builder/tests/src/Kernel/TranslatableFieldTest.php Tests that sections on cleared when creating a new translation.
TranslatableInterface interface core/lib/Drupal/Core/TypedData/TranslatableInterface.php Interface for translatable data.
TranslatableInterface interface core/lib/Drupal/Core/Entity/TranslatableInterface.php Provides methods for an entity to support translation.
TranslatableInterface.php file core/lib/Drupal/Core/TypedData/TranslatableInterface.php
TranslatableInterface.php file core/lib/Drupal/Core/Entity/TranslatableInterface.php
TranslatableInterface::addTranslation function core/lib/Drupal/Core/TypedData/TranslatableInterface.php Adds a new translation to the translatable object.
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.
TranslatableInterface::getUntranslated function core/lib/Drupal/Core/TypedData/TranslatableInterface.php Returns the translatable object in the language it was created.
TranslatableInterface::hasTranslation function core/lib/Drupal/Core/TypedData/TranslatableInterface.php Checks there is a translation for the given language code.
TranslatableInterface::hasTranslationChanges function core/lib/Drupal/Core/Entity/TranslatableInterface.php Determines if the current translation of the entity has unsaved changes.
TranslatableInterface::isDefaultTranslation function core/lib/Drupal/Core/TypedData/TranslatableInterface.php Checks whether the translation is the default one.
TranslatableInterface::isNewTranslation function core/lib/Drupal/Core/TypedData/TranslatableInterface.php Checks whether the translation is new.
TranslatableInterface::isTranslatable function core/lib/Drupal/Core/TypedData/TranslatableInterface.php Returns the translation support status.
TranslatableInterface::language function core/lib/Drupal/Core/TypedData/TranslatableInterface.php Returns the translation language.
TranslatableInterface::removeTranslation function core/lib/Drupal/Core/TypedData/TranslatableInterface.php Removes the translation identified by the given language code.
TranslatableMarkup class core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php Provides translatable markup class.
TranslatableMarkup.php file core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php
TranslatableMarkup::$options property core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php The translation options.
TranslatableMarkup::$stringTranslation property core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php The string translation service.
TranslatableMarkup::$translatedMarkup property core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php The translated markup without placeholder replacements.
TranslatableMarkup::count function core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php Returns the string length.
TranslatableMarkup::getArguments function core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php Gets all arguments from this translated string.
TranslatableMarkup::getOption function core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php Gets a specific option from this translated string.
TranslatableMarkup::getOptions function core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php Gets all options from this translated string.
TranslatableMarkup::getStringTranslation function core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php Gets the string translation service.
TranslatableMarkup::getUntranslatedString function core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php Gets the untranslated string value stored in this translated string.
TranslatableMarkup::render function core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php Renders the object as a string.
TranslatableMarkup::__construct function core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php Constructs a new class instance.
TranslatableMarkup::__sleep function core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php Magic __sleep() method to avoid serializing the string translator.
TranslatableMarkupTest class core/tests/Drupal/Tests/Core/StringTranslation/TranslatableMarkupTest.php Tests the TranslatableMarkup class.
TranslatableMarkupTest.php file core/tests/Drupal/Tests/Core/StringTranslation/TranslatableMarkupTest.php
TranslatableMarkupTest::$lastErrorMessage property core/tests/Drupal/Tests/Core/StringTranslation/TranslatableMarkupTest.php The error message of the last error in the error handler.
TranslatableMarkupTest::$lastErrorNumber property core/tests/Drupal/Tests/Core/StringTranslation/TranslatableMarkupTest.php The error number of the last error in the error handler.
TranslatableMarkupTest::errorHandler function core/tests/Drupal/Tests/Core/StringTranslation/TranslatableMarkupTest.php Custom error handler that saves the last error.
TranslatableMarkupTest::testIsStringAssertion function core/tests/Drupal/Tests/Core/StringTranslation/TranslatableMarkupTest.php @covers ::__construct
TranslatableMarkupTest::testIsStringAssertionWithFormattableMarkup function core/tests/Drupal/Tests/Core/StringTranslation/TranslatableMarkupTest.php @covers ::__construct

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