X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FConfig%2FEntity%2FConfigEntityStorage.php;h=723ba5316eeb5fdf966632120076204a8380beb7;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=11b66fc7a1939b23aa1ee7fb08ef5d2b47e2496f;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php b/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php index 11b66fc7a..723ba5316 100644 --- a/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php +++ b/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php @@ -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()