X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FEntity%2FRevisionableInterface.php;fp=web%2Fcore%2Flib%2FDrupal%2FCore%2FEntity%2FRevisionableInterface.php;h=0fc6db2fec9359a310bc6bf3d9bff5da58a42174;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=14690e3c54a62c0edf002e07160dfc313ffb3237;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Entity/RevisionableInterface.php b/web/core/lib/Drupal/Core/Entity/RevisionableInterface.php index 14690e3c5..0fc6db2fe 100644 --- a/web/core/lib/Drupal/Core/Entity/RevisionableInterface.php +++ b/web/core/lib/Drupal/Core/Entity/RevisionableInterface.php @@ -51,6 +51,22 @@ interface RevisionableInterface { */ public function isDefaultRevision($new_value = NULL); + /** + * Checks whether the entity object was a default revision when it was saved. + * + * @return bool + * TRUE if the entity object was a revision, FALSE otherwise. + */ + public function wasDefaultRevision(); + + /** + * Checks if this entity is the latest revision. + * + * @return bool + * TRUE if the entity is the latest revision, FALSE otherwise. + */ + public function isLatestRevision(); + /** * Acts on a revision before it gets saved. *