X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FEntity%2FContentEntityInterface.php;fp=web%2Fcore%2Flib%2FDrupal%2FCore%2FEntity%2FContentEntityInterface.php;h=f43bc3b453d2d42537bba2abf83146f133dbc104;hp=d045152f6a1055299e4f59143fc43ecda7c5ad41;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/lib/Drupal/Core/Entity/ContentEntityInterface.php b/web/core/lib/Drupal/Core/Entity/ContentEntityInterface.php index d045152f6..f43bc3b45 100644 --- a/web/core/lib/Drupal/Core/Entity/ContentEntityInterface.php +++ b/web/core/lib/Drupal/Core/Entity/ContentEntityInterface.php @@ -2,8 +2,6 @@ namespace Drupal\Core\Entity; -use Drupal\Core\TypedData\TranslatableInterface; - /** * Defines a common interface for all content entity objects. * @@ -20,35 +18,7 @@ use Drupal\Core\TypedData\TranslatableInterface; * * @ingroup entity_api */ -interface ContentEntityInterface extends \Traversable, FieldableEntityInterface, RevisionableInterface, TranslatableInterface { - - /** - * 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(); - - /** - * Marks the current revision translation as affected. - * - * @param bool|null $affected - * The flag value. A NULL value can be specified to reset the current value - * and make sure a new value will be computed by the system. - * - * @return $this - */ - public function setRevisionTranslationAffected($affected); - - /** - * Checks whether the current translation is affected by the current revision. - * - * @return bool - * TRUE if the entity object is affected by the current revision, FALSE - * otherwise. - */ - public function isRevisionTranslationAffected(); +interface ContentEntityInterface extends \Traversable, FieldableEntityInterface, TranslatableRevisionableInterface { /** * Gets the loaded Revision ID of the entity.