interface TranslatableInterface
Same name in this branch
- 9 core/lib/Drupal/Core/TypedData/TranslatableInterface.php \Drupal\Core\TypedData\TranslatableInterface
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/TypedData/TranslatableInterface.php \Drupal\Core\TypedData\TranslatableInterface
- 11.x core/lib/Drupal/Core/Entity/TranslatableInterface.php \Drupal\Core\Entity\TranslatableInterface
- 10 core/lib/Drupal/Core/TypedData/TranslatableInterface.php \Drupal\Core\TypedData\TranslatableInterface
- 10 core/lib/Drupal/Core/Entity/TranslatableInterface.php \Drupal\Core\Entity\TranslatableInterface
- 8.9.x core/lib/Drupal/Core/TypedData/TranslatableInterface.php \Drupal\Core\TypedData\TranslatableInterface
- 8.9.x core/lib/Drupal/Core/Entity/TranslatableInterface.php \Drupal\Core\Entity\TranslatableInterface
Provides methods for an entity to support translation.
Hierarchy
- interface \Drupal\Core\Entity\EntityInterface extends \Drupal\Core\Access\AccessibleInterface, \Drupal\Core\Cache\CacheableDependencyInterface, \Drupal\Core\Cache\RefinableCacheableDependencyInterface; interface \Drupal\Core\TypedData\TranslatableInterface
- interface \Drupal\Core\Entity\TranslatableInterface extends \Drupal\Core\TypedData\TranslatableInterface, \Drupal\Core\Entity\EntityInterface
Expanded class hierarchy of TranslatableInterface
All classes that implement TranslatableInterface
Related topics
5 files declare their use of TranslatableInterface
- EntityRevisionParamConverter.php in core/
lib/ Drupal/ Core/ ParamConverter/ EntityRevisionParamConverter.php - EntityUuidConverter.php in core/
modules/ jsonapi/ src/ ParamConverter/ EntityUuidConverter.php - JsonApiRegressionTest.php in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiRegressionTest.php - KeyValueContentEntityStorage.php in core/
lib/ Drupal/ Core/ Entity/ KeyValueStore/ KeyValueContentEntityStorage.php - OverridesSectionStorage.php in core/
modules/ layout_builder/ src/ Plugin/ SectionStorage/ OverridesSectionStorage.php
File
-
core/
lib/ Drupal/ Core/ Entity/ TranslatableInterface.php, line 12
Namespace
Drupal\Core\EntityView source
interface TranslatableInterface extends TranslatableDataInterface, EntityInterface {
/**
* Determines if the current translation of the entity has unsaved changes.
*
* @return bool
* TRUE if the current translation of the entity has changes.
*/
public function hasTranslationChanges();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.