Mercurial > hg > isophonics-drupal-site
diff core/lib/Drupal/Core/Entity/RevisionableInterface.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | c2387f117808 |
line wrap: on
line diff
--- a/core/lib/Drupal/Core/Entity/RevisionableInterface.php Mon Apr 23 09:33:26 2018 +0100 +++ b/core/lib/Drupal/Core/Entity/RevisionableInterface.php Mon Apr 23 09:46:53 2018 +0100 @@ -52,6 +52,22 @@ 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. * * @param EntityStorageInterface $storage