You are here

TranslatableInterface.php in Drupal 9

Namespace

Drupal\Core\Entity

File

core/lib/Drupal/Core/Entity/TranslatableInterface.php
View source
<?php

namespace Drupal\Core\Entity;

use Drupal\Core\TypedData\TranslatableInterface as TranslatableDataInterface;

/**
 * Provides methods for an entity to support translation.
 */
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();

}

Interfaces

Namesort descending Description
TranslatableInterface Provides methods for an entity to support translation.