X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FEntity%2FContentEntityInterface.php;h=56cf1397e2ba150993c41106e64c891fb7a084f3;hb=refs%2Fheads%2Fd864;hp=f43bc3b453d2d42537bba2abf83146f133dbc104;hpb=af6d1fb995500ae68849458ee10d66abbdcfb252;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Entity/ContentEntityInterface.php b/web/core/lib/Drupal/Core/Entity/ContentEntityInterface.php index f43bc3b45..56cf1397e 100644 --- a/web/core/lib/Drupal/Core/Entity/ContentEntityInterface.php +++ b/web/core/lib/Drupal/Core/Entity/ContentEntityInterface.php @@ -5,40 +5,22 @@ namespace Drupal\Core\Entity; /** * Defines a common interface for all content entity objects. * - * Content entities use fields for all their entity properties and are - * translatable and revisionable, while translations and revisions can be - * enabled per entity type. It's best practice to always implement - * ContentEntityInterface for content-like entities that should be stored in - * some database, and enable/disable revisions and translations as desired. + * Content entities use fields for all their entity properties and can be + * translatable and revisionable. Translations and revisions can be + * enabled per entity type through annotation and using entity type hooks. + * + * It's best practice to always implement ContentEntityInterface for + * content-like entities that should be stored in some database, and + * enable/disable revisions and translations as desired. * * When implementing this interface which extends Traversable, make sure to list * IteratorAggregate or Iterator before this interface in the implements clause. * * @see \Drupal\Core\Entity\ContentEntityBase + * @see \Drupal\Core\Entity\EntityTypeInterface * * @ingroup entity_api */ interface ContentEntityInterface extends \Traversable, FieldableEntityInterface, TranslatableRevisionableInterface { - /** - * Gets the loaded Revision ID of the entity. - * - * @return int - * The loaded Revision identifier of the entity, or NULL if the entity - * does not have a revision identifier. - */ - public function getLoadedRevisionId(); - - /** - * Updates the loaded Revision ID with the revision ID. - * - * This method should not be used, it could unintentionally cause the original - * revision ID property value to be lost. - * - * @internal - * - * @return $this - */ - public function updateLoadedRevisionId(); - }