Mercurial > hg > cmmr2012-drupal-site
diff core/lib/Drupal/Core/Entity/RevisionableInterface.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children | 12f9dff5fda9 |
line wrap: on
line diff
--- a/core/lib/Drupal/Core/Entity/RevisionableInterface.php Thu Feb 28 11:14:44 2019 +0000 +++ b/core/lib/Drupal/Core/Entity/RevisionableInterface.php Thu Feb 28 13:11:55 2019 +0000 @@ -55,6 +55,27 @@ 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. * * @param bool $new_value