Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -20,25 +20,4 @@ ...@@ -20,25 +20,4 @@
*/ */
interface ContentEntityInterface extends \Traversable, FieldableEntityInterface, TranslatableRevisionableInterface { 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); ...@@ -39,6 +39,27 @@ public function setNewRevision($value = TRUE);
*/ */
public function getRevisionId(); 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. * Checks if this entity is the default revision.
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment