return !$config->isNew();
}
+ /**
+ * {@inheritdoc}
+ */
+ public function hasData() {
+ return (bool) $this->configFactory->listAll($this->getPrefix());
+ }
+
/**
* Gets entities from the static cache.
*
* @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()