diff --git a/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php b/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php index 9d6b8d6..515db0d 100644 --- a/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php +++ b/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php @@ -65,16 +65,6 @@ public static function createInstance(ContainerInterface $container, EntityTypeI /** * {@inheritdoc} */ - public function hasData() { - return (bool) $this->getQuery() - ->accessCheck(FALSE) - ->range(0, 1) - ->execute(); - } - - /** - * {@inheritdoc} - */ protected function doCreate(array $values) { // We have to determine the bundle first. $bundle = FALSE; diff --git a/core/lib/Drupal/Core/Entity/EntityStorageBase.php b/core/lib/Drupal/Core/Entity/EntityStorageBase.php index 7335af1..e5bf880 100644 --- a/core/lib/Drupal/Core/Entity/EntityStorageBase.php +++ b/core/lib/Drupal/Core/Entity/EntityStorageBase.php @@ -508,6 +508,16 @@ public function loadByProperties(array $values = []) { /** * {@inheritdoc} */ + public function hasData() { + return (bool) $this->getQuery() + ->accessCheck(FALSE) + ->range(0, 1) + ->execute(); + } + + /** + * {@inheritdoc} + */ public function getQuery($conjunction = 'AND') { // Access the service directly rather than entity.query factory so the // storage's current entity type is used.