TranslatableInterface.php

Same filename in this branch
  1. 10 core/lib/Drupal/Core/TypedData/TranslatableInterface.php
Same filename in other branches
  1. 9 core/lib/Drupal/Core/TypedData/TranslatableInterface.php
  2. 9 core/lib/Drupal/Core/Entity/TranslatableInterface.php
  3. 8.9.x core/lib/Drupal/Core/TypedData/TranslatableInterface.php
  4. 8.9.x core/lib/Drupal/Core/Entity/TranslatableInterface.php
  5. 11.x core/lib/Drupal/Core/TypedData/TranslatableInterface.php
  6. 11.x core/lib/Drupal/Core/Entity/TranslatableInterface.php

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.
 *
 * @ingroup entity_type_characteristics
 */
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

Title Deprecated Summary
TranslatableInterface Provides methods for an entity to support translation.

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