X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FEntity%2FEntityStorageInterface.php;fp=web%2Fcore%2Flib%2FDrupal%2FCore%2FEntity%2FEntityStorageInterface.php;h=9f50674d0df34c020ef398e0634bcaebb8886e60;hp=50166d6e27877febcc87c0ba6213456bdd63094a;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/lib/Drupal/Core/Entity/EntityStorageInterface.php b/web/core/lib/Drupal/Core/Entity/EntityStorageInterface.php index 50166d6e2..9f50674d0 100644 --- a/web/core/lib/Drupal/Core/Entity/EntityStorageInterface.php +++ b/web/core/lib/Drupal/Core/Entity/EntityStorageInterface.php @@ -142,6 +142,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. *