diff --git a/core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php b/core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php index 4984994..0b3dcc9 100644 --- a/core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php +++ b/core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php @@ -167,7 +167,7 @@ public function getFilters() { $filters = []; // Add a default filter on the publishing status field, if available. - if (is_subclass_of($this->entityType->getClass(), EntityPublishedInterface::class)) { + if ($this->entityType && is_subclass_of($this->entityType->getClass(), EntityPublishedInterface::class)) { $field_name = $this->entityType->getKey('published'); $this->filters = [ $field_name => [