Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

TranslatableInterface.php

Same filename in this branch
  1. 11.1.x vendor/php-tuf/composer-stager/src/API/Translation/Value/TranslatableInterface.php
  2. 11.1.x vendor/symfony/translation-contracts/TranslatableInterface.php
  3. 11.1.x core/lib/Drupal/Core/TypedData/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.
RSS feed
Powered by Drupal