interface TranslatableInterface in Drupal 10
Same name in this branch
- 10 core/lib/Drupal/Core/TypedData/TranslatableInterface.php \Drupal\Core\TypedData\TranslatableInterface
- 10 core/lib/Drupal/Core/Entity/TranslatableInterface.php \Drupal\Core\Entity\TranslatableInterface
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/TranslatableInterface.php \Drupal\Core\Entity\TranslatableInterface
- 9 core/lib/Drupal/Core/Entity/TranslatableInterface.php \Drupal\Core\Entity\TranslatableInterface
Provides methods for an entity to support translation.
Hierarchy
- interface \Drupal\Core\TypedData\TranslatableInterface; interface \Drupal\Core\Entity\EntityInterface
- interface \Drupal\Core\Entity\TranslatableInterface
Expanded class hierarchy of TranslatableInterface
All classes that implement TranslatableInterface
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 10
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();
}