projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pull merge.
[yaffs-website]
/
web
/
core
/
lib
/
Drupal
/
Core
/
Entity
/
EntityStorageInterface.php
diff --git
a/web/core/lib/Drupal/Core/Entity/EntityStorageInterface.php
b/web/core/lib/Drupal/Core/Entity/EntityStorageInterface.php
index 50166d6e27877febcc87c0ba6213456bdd63094a..1db273945aace49519e67d3fc3726d5171d84807 100644
(file)
--- 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.
*
* @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);
*/
public function loadRevision($revision_id);
@@
-89,6
+95,12
@@
interface EntityStorageInterface {
*
* @param int $revision_id
* The revision id.
*
* @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);
*/
public function deleteRevision($revision_id);
@@
-142,6
+154,14
@@
interface EntityStorageInterface {
*/
public function save(EntityInterface $entity);
*/
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.
*
/**
* Gets an entity query instance.
*