Commit 4838f6d6 authored by catch's avatar catch
Browse files

Issue #2938315 by plach: Move revision-related methods from...

Issue #2938315 by plach: Move revision-related methods from ContentEntityInterface to RevisionableInterface
parent dc222737
......@@ -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();
}
......@@ -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.
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment