projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Security update for Core, with self-updated composer
[yaffs-website]
/
web
/
core
/
lib
/
Drupal
/
Core
/
Config
/
Entity
/
ConfigEntityStorage.php
diff --git
a/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php
b/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php
index 11b66fc7a1939b23aa1ee7fb08ef5d2b47e2496f..723ba5316eeb5fdf966632120076204a8380beb7 100644
(file)
--- 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();
}
return !$config->isNew();
}
+ /**
+ * {@inheritdoc}
+ */
+ public function hasData() {
+ return (bool) $this->configFactory->listAll($this->getPrefix());
+ }
+
/**
* Gets entities from the static cache.
*
/**
* 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.
*
* @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()
* The configuration entity.
*
* @see \Drupal\Core\Config\Entity\ConfigEntityStorageInterface::createFromStorageRecord()