You are here

interface TranslatableInterface in Drupal 10

Same name in this branch
  1. 10 core/lib/Drupal/Core/TypedData/TranslatableInterface.php \Drupal\Core\TypedData\TranslatableInterface
  2. 10 core/lib/Drupal/Core/Entity/TranslatableInterface.php \Drupal\Core\Entity\TranslatableInterface
Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/TranslatableInterface.php \Drupal\Core\Entity\TranslatableInterface
  2. 9 core/lib/Drupal/Core/Entity/TranslatableInterface.php \Drupal\Core\Entity\TranslatableInterface

Provides methods for an entity to support translation.

Hierarchy

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\Entity
View 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();

}

Members