X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FEntity%2FEntityStorageInterface.php;h=1db273945aace49519e67d3fc3726d5171d84807;hb=5b8bb166bfa98770daef9de5c127fc2e6ef02340;hp=50166d6e27877febcc87c0ba6213456bdd63094a;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Entity/EntityStorageInterface.php b/web/core/lib/Drupal/Core/Entity/EntityStorageInterface.php index 50166d6e2..1db273945 100644 --- a/web/core/lib/Drupal/Core/Entity/EntityStorageInterface.php +++ b/web/core/lib/Drupal/Core/Entity/EntityStorageInterface.php @@ -79,6 +79,12 @@ interface EntityStorageInterface { * * @return \Drupal\Core\Entity\EntityInterface|null * The specified entity revision or NULL if not found. + * + * @todo Deprecated in Drupal 8.5.0 and will be removed before Drupal 9.0.0. + * Use \Drupal\Core\Entity\RevisionableStorageInterface instead. + * + * @see https://www.drupal.org/node/2926958 + * @see https://www.drupal.org/node/2927226 */ public function loadRevision($revision_id); @@ -89,6 +95,12 @@ interface EntityStorageInterface { * * @param int $revision_id * The revision id. + * + * @todo Deprecated in Drupal 8.5.0 and will be removed before Drupal 9.0.0. + * Use \Drupal\Core\Entity\RevisionableStorageInterface instead. + * + * @see https://www.drupal.org/node/2926958 + * @see https://www.drupal.org/node/2927226 */ public function deleteRevision($revision_id); @@ -142,6 +154,14 @@ interface EntityStorageInterface { */ public function save(EntityInterface $entity); + /** + * Determines if the storage contains any data. + * + * @return bool + * TRUE if the storage contains data, FALSE if not. + */ + public function hasData(); + /** * Gets an entity query instance. *