Search for trans

  1. Search 7.x for trans
  2. Search 9.5.x for trans
  3. Search 8.9.x for trans
  4. Search 10.3.x for trans
  5. Other projects
Title Object type File name Summary
ContentEntityBase::addTranslation function core/lib/Drupal/Core/Entity/ContentEntityBase.php Adds a new translation to the translatable object.
ContentEntityBase::clearTranslationCache function core/lib/Drupal/Core/Entity/ContentEntityBase.php Clears entity translation object cache to remove stale references.
ContentEntityBase::getFieldsToSkipFromTranslationChangesCheck function core/lib/Drupal/Core/Entity/ContentEntityBase.php Returns an array of field names to skip in ::hasTranslationChanges.
ContentEntityBase::getTranslatableFields function core/lib/Drupal/Core/Entity/ContentEntityBase.php Gets an array of field item lists for translatable fields.
ContentEntityBase::getTranslatedField function core/lib/Drupal/Core/Entity/ContentEntityBase.php Gets a translated field.
ContentEntityBase::getTranslation function core/lib/Drupal/Core/Entity/ContentEntityBase.php Gets a translation of the data.
ContentEntityBase::getTranslationLanguages function core/lib/Drupal/Core/Entity/ContentEntityBase.php Returns the languages the data is translated to.
ContentEntityBase::getTranslationStatus function core/lib/Drupal/Core/Entity/ContentEntityBase.php Returns the translation status.
ContentEntityBase::getUntranslated function core/lib/Drupal/Core/Entity/ContentEntityBase.php Returns the translatable object in the language it was created.
ContentEntityBase::hasTranslation function core/lib/Drupal/Core/Entity/ContentEntityBase.php Checks there is a translation for the given language code.
ContentEntityBase::hasTranslationChanges function core/lib/Drupal/Core/Entity/ContentEntityBase.php Determines if the current translation of the entity has unsaved changes.
ContentEntityBase::initializeTranslation function core/lib/Drupal/Core/Entity/ContentEntityBase.php Instantiates a translation object for an existing translation.
ContentEntityBase::isDefaultTranslation function core/lib/Drupal/Core/Entity/ContentEntityBase.php Checks whether the translation is the default one.
ContentEntityBase::isDefaultTranslationAffectedOnly function core/lib/Drupal/Core/Entity/ContentEntityBase.php Checks if untranslatable fields should affect only the default translation.
ContentEntityBase::isLatestTranslationAffectedRevision function core/lib/Drupal/Core/Entity/ContentEntityBase.php Checks whether this is the latest revision affecting this translation.
ContentEntityBase::isNewTranslation function core/lib/Drupal/Core/Entity/ContentEntityBase.php Checks whether the translation is new.
ContentEntityBase::isRevisionTranslationAffected function core/lib/Drupal/Core/Entity/ContentEntityBase.php Checks whether the current translation is affected by the current revision.
ContentEntityBase::isRevisionTranslationAffectedEnforced function core/lib/Drupal/Core/Entity/ContentEntityBase.php Checks if the revision translation affected flag value has been enforced.
ContentEntityBase::isTranslatable function core/lib/Drupal/Core/Entity/ContentEntityBase.php Returns the translation support status.
ContentEntityBase::removeTranslation function core/lib/Drupal/Core/Entity/ContentEntityBase.php Removes the translation identified by the given language code.
ContentEntityBase::setDefaultTranslationEnforced function core/lib/Drupal/Core/Entity/ContentEntityBase.php Set or clear an override of the isDefaultTranslation() result.
ContentEntityBase::setRevisionTranslationAffected function core/lib/Drupal/Core/Entity/ContentEntityBase.php Marks the current revision translation as affected.
ContentEntityBase::setRevisionTranslationAffectedEnforced function core/lib/Drupal/Core/Entity/ContentEntityBase.php Enforces the revision translation affected flag value.
ContentEntityBaseUnitTest::testIsTranslatable function core/tests/Drupal/Tests/Core/Entity/ContentEntityBaseUnitTest.php @covers ::isTranslatable[[api-linebreak]]
ContentEntityBaseUnitTest::testIsTranslatableForMonolingual function core/tests/Drupal/Tests/Core/Entity/ContentEntityBaseUnitTest.php @covers ::isTranslatable[[api-linebreak]]
ContentEntityChangedTest::getRevisionTranslationAffectedFlag function core/tests/Drupal/KernelTests/Core/Entity/ContentEntityChangedTest.php Retrieves the revision translation affected flag value.
ContentEntityCloneTest::testEnforceIsNewOnClonedEntityTranslation function core/tests/Drupal/KernelTests/Core/Entity/ContentEntityCloneTest.php Tests that the flag for enforcing a new entity is not shared.
ContentEntityCloneTest::testNewRevisionOnCloneEntityTranslation function core/tests/Drupal/KernelTests/Core/Entity/ContentEntityCloneTest.php Tests that the flag for enforcing a new revision is not shared.
ContentEntityHasChangesTest::testHasTranslationChanges function core/tests/Drupal/KernelTests/Core/Entity/ContentEntityHasChangesTest.php Tests the correct functionality of the hasTranslationChanges() function.
ContentEntityStorageBase::createTranslation function core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php Constructs a new entity translation object, without permanently saving it.
ContentEntityStorageBase::getLatestTranslationAffectedRevisionId function core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php Returns the latest revision affecting the specified translation.
ContentEntityStorageBase::getRevisionTranslationMergeSkippedFieldNames function core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php Returns an array of field names to skip when merging revision translations.
ContentEntityStorageBase::invokeTranslationHooks function core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php Checks translation statuses and invokes the related hooks if needed.
ContentEntityStorageBase::isAnyRevisionTranslated function core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php Checks whether any entity revision is translated.
ContentEntityStorageBase::isAnyStoredRevisionTranslated function core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php Checks whether any stored entity revision is translated.
ContentEntityStorageBase::populateAffectedRevisionTranslations function core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php Populates the affected flag for all the revision translations.
ContentModerationHooks::entityTranslationDelete function core/modules/content_moderation/src/Hook/ContentModerationHooks.php Implements hook_entity_translation_delete().
ContentModerationState::canTransitionTo function core/modules/content_moderation/src/ContentModerationState.php Determines if the state can transition to the provided state ID.
ContentModerationState::getFieldsToSkipFromTranslationChangesCheck function core/modules/content_moderation/src/Entity/ContentModerationState.php Returns an array of field names to skip in ::hasTranslationChanges.
ContentModerationState::getTransitions function core/modules/content_moderation/src/ContentModerationState.php Gets all the possible transition objects for the state.
ContentModerationState::getTransitionTo function core/modules/content_moderation/src/ContentModerationState.php Gets the Transition object for the provided state ID.
ContentModerationStateTest::doTestContentModerationStateTranslationDataRemoval function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php Tests removal of content moderation state translations.
ContentModerationStateTest::testContentModerationStateTranslationDataRemoval function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php Tests removal of content moderation state translations.
ContentModerationStateTest::testNonTranslatableEntityTypeModeration function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php Tests that a non-translatable entity type with a langcode can be moderated.
ContentTestTranslationUITest class core/modules/content_translation/tests/src/Functional/ContentTestTranslationUITest.php Tests the test content translation UI with the test entity.
ContentTestTranslationUITest.php file core/modules/content_translation/tests/src/Functional/ContentTestTranslationUITest.php
ContentTestTranslationUITest::$defaultCacheContexts property core/modules/content_translation/tests/src/Functional/ContentTestTranslationUITest.php Default cache contexts expected on a non-translated entity.
ContentTestTranslationUITest::$defaultTheme property core/modules/content_translation/tests/src/Functional/ContentTestTranslationUITest.php The theme to install as the default for testing.
ContentTestTranslationUITest::$modules property core/modules/content_translation/tests/src/Functional/ContentTestTranslationUITest.php Modules to install.
ContentTestTranslationUITest::$testHTMLEscapeForAllLanguages property core/modules/content_translation/tests/src/Functional/ContentTestTranslationUITest.php Flag to determine if "all languages" rendering is tested.

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