Security update for Core, with self-updated composer
[yaffs-website] / web / core / lib / Drupal / Core / Config / Entity / ConfigEntityStorage.php
index 11b66fc7a1939b23aa1ee7fb08ef5d2b47e2496f..723ba5316eeb5fdf966632120076204a8380beb7 100644 (file)
@@ -316,6 +316,13 @@ class ConfigEntityStorage extends EntityStorageBase implements ConfigEntityStora
     return !$config->isNew();
   }
 
+  /**
+   * {@inheritdoc}
+   */
+  public function hasData() {
+    return (bool) $this->configFactory->listAll($this->getPrefix());
+  }
+
   /**
    * Gets entities from the static cache.
    *
@@ -438,7 +445,7 @@ class ConfigEntityStorage extends EntityStorageBase implements ConfigEntityStora
    * @param bool $is_syncing
    *   Is the configuration entity being created as part of a config sync.
    *
-   * @return ConfigEntityInterface
+   * @return \Drupal\Core\Config\ConfigEntityInterface
    *   The configuration entity.
    *
    * @see \Drupal\Core\Config\Entity\ConfigEntityStorageInterface::createFromStorageRecord()