Security update for Core, with self-updated composer
[yaffs-website] / web / core / lib / Drupal / Core / Entity / KeyValueStore / KeyValueEntityStorage.php
index de77e09d20f3ac94492900e3a65516592e1fdb1b..cd2f26efbd695a6d9720ea0ceea65a861576586e 100644 (file)
@@ -187,6 +187,13 @@ class KeyValueEntityStorage extends EntityStorageBase {
     return $this->keyValueStore->has($id);
   }
 
+  /**
+   * {@inheritdoc}
+   */
+  public function hasData() {
+    return (bool) $this->keyValueStore->getAll();
+  }
+
   /**
    * {@inheritdoc}
    */