summaryrefslogtreecommitdiffstats
path: root/core/lib/Drupal/Core/Entity/ContentEntityNullStorage.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/lib/Drupal/Core/Entity/ContentEntityNullStorage.php')
-rw-r--r--core/lib/Drupal/Core/Entity/ContentEntityNullStorage.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/core/lib/Drupal/Core/Entity/ContentEntityNullStorage.php b/core/lib/Drupal/Core/Entity/ContentEntityNullStorage.php
index 12aeca3..b9843c8 100644
--- a/core/lib/Drupal/Core/Entity/ContentEntityNullStorage.php
+++ b/core/lib/Drupal/Core/Entity/ContentEntityNullStorage.php
@@ -78,7 +78,7 @@ class ContentEntityNullStorage extends ContentEntityStorageBase {
/**
* {@inheritdoc}
*/
- public function getQueryServiceName() {
+ protected function getQueryServiceName() {
throw new QueryException('Null implementation can not be queried.');
}
@@ -138,4 +138,11 @@ class ContentEntityNullStorage extends ContentEntityStorageBase {
return $as_bool ? FALSE : 0;
}
+ /**
+ * {@inheritdoc}
+ */
+ public function hasData() {
+ return FALSE;
+ }
+
}