summaryrefslogtreecommitdiffstats
path: root/core/lib/Drupal/Core/Entity/DynamicallyFieldableEntityStorageInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/lib/Drupal/Core/Entity/DynamicallyFieldableEntityStorageInterface.php')
-rw-r--r--core/lib/Drupal/Core/Entity/DynamicallyFieldableEntityStorageInterface.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/lib/Drupal/Core/Entity/DynamicallyFieldableEntityStorageInterface.php b/core/lib/Drupal/Core/Entity/DynamicallyFieldableEntityStorageInterface.php
index 6d12c98..a5a9a94 100644
--- a/core/lib/Drupal/Core/Entity/DynamicallyFieldableEntityStorageInterface.php
+++ b/core/lib/Drupal/Core/Entity/DynamicallyFieldableEntityStorageInterface.php
@@ -85,6 +85,14 @@ interface DynamicallyFieldableEntityStorageInterface extends EntityStorageInterf
public function countFieldData($storage_definition, $as_bool = FALSE);
/**
+ * Determines if the storage contains any data.
+ *
+ * @return bool
+ * TRUE if the storage contains data, FALSE if not.
+ */
+ public function hasData();
+
+ /**
* Performs final cleanup after all data of a field has been purged.
*
* @param \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition