diff -u b/src/Plugin/views/filter/EntityBundle.php b/src/Plugin/views/filter/EntityBundle.php --- b/src/Plugin/views/filter/EntityBundle.php +++ b/src/Plugin/views/filter/EntityBundle.php @@ -102,8 +102,8 @@ $this->valueTitle = $this->t('@entity types', ['@entity' => $this->entityType->getLabel()]); $options = []; foreach ($types as $type => $info) { - $entity = $this->entityManager->getStorage($this->entityTypeId)->create([$this->entityType->getKey('bundle') => $type]); - if (!$this->options['expose']['filter_bundles'] || $entity->access('view')) { + $values = [$this->entityType->getKey('bundle') => $type]; + if (!$this->options['expose']['filter_bundles'] || $this->entityManager->getStorage($this->entityTypeId)->create($values)->access('view')) { $options[$type] = $info['label']; } }