X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FEntity%2FQuery%2FQueryInterface.php;h=d4b0608e80753774681b84ced30eb326db6c9752;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=df375207bda85a2117ca51be3feab2983e4a1387;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Entity/Query/QueryInterface.php b/web/core/lib/Drupal/Core/Entity/Query/QueryInterface.php index df375207b..d4b0608e8 100644 --- a/web/core/lib/Drupal/Core/Entity/Query/QueryInterface.php +++ b/web/core/lib/Drupal/Core/Entity/Query/QueryInterface.php @@ -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. *