Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / lib / Drupal / Core / Entity / Query / QueryInterface.php
index df375207bda85a2117ca51be3feab2983e4a1387..d4b0608e80753774681b84ced30eb326db6c9752 100644 (file)
@@ -254,6 +254,17 @@ interface QueryInterface extends AlterableInterface {
    */
   public function currentRevision();
 
+  /**
+   * Queries the latest revision.
+   *
+   * The latest revision is the most recent revision of an entity. This will be
+   * either the default revision, or a pending revision if one exists and it is
+   * newer than the default.
+   *
+   * @return $this
+   */
+  public function latestRevision();
+
   /**
    * Queries all the revisions.
    *