diff --git a/core/lib/Drupal/Core/Entity/ContentEntityInterface.php b/core/lib/Drupal/Core/Entity/ContentEntityInterface.php index f43bc3b453d2d42537bba2abf83146f133dbc104..cbb7f88c5b3765259ac99fc88e00aab9f13d8347 100644 --- a/core/lib/Drupal/Core/Entity/ContentEntityInterface.php +++ b/core/lib/Drupal/Core/Entity/ContentEntityInterface.php @@ -20,25 +20,4 @@ */ 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(); - } diff --git a/core/lib/Drupal/Core/Entity/RevisionableInterface.php b/core/lib/Drupal/Core/Entity/RevisionableInterface.php index 0fc6db2fec9359a310bc6bf3d9bff5da58a42174..58f1bc551156bd1dfda7b6327726d3a5f5404196 100644 --- a/core/lib/Drupal/Core/Entity/RevisionableInterface.php +++ b/core/lib/Drupal/Core/Entity/RevisionableInterface.php @@ -39,6 +39,27 @@ public function setNewRevision($value = TRUE); */ public function getRevisionId(); + /** + * 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(); + /** * Checks if this entity is the default revision. *