Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / lib / Drupal / Core / Entity / RevisionableInterface.php
index 14690e3c54a62c0edf002e07160dfc313ffb3237..0fc6db2fec9359a310bc6bf3d9bff5da58a42174 100644 (file)
@@ -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.
    *