Drupal\Component\Plugin\Exception\PluginNotFoundException: The "" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 133 of core/lib/Drupal/Core/Entity/EntityTypeManager.php).

Drupal\Core\Entity\EntityTypeManager->getHandler(NULL, 'storage') (Line: 169)
Drupal\Core\Entity\EntityTypeManager->getStorage(NULL) (Line: 64)
Drupal\Core\Entity\EntityManager->getStorage(NULL) (Line: 127)
Drupal\views\Plugin\views\filter\Bundle->calculateDependencies() (Line: 47)
Drupal\views\Plugin\views\display\DisplayPluginBase->calculatePluginDependencies(Object, 7)

This is presumably because the Views filter plugin tries to get the bundle config entity when calculating config dependencies.

Comments

joachim created an issue. See original summary.

chrisrockwell’s picture

Not sure if it's helpful, but if you create the view with "all" selected for the bundle type, it will create and then you can edit the filter for a specific type. However, and I'm not sure if it's related, you don't have access to any of the bundle fields.

joachim’s picture

I'm afraid in my case I want an exposed filter, so that won't work.

And this is to make an admin view of entities, so a pretty common use case.

joachim’s picture

This could be fixed by providing a custom field handler for the bundle field for this sort of entity.

However, its probably going to come up on other views plugins too.

I think the best long-term solution would be to have entities that use bundle plugins automatically define a config entity type, and automatically create the bundle config entities in sync with the plugins. That would also solve a *lot* of issues wherever core expects entity bundles to be themselves entities.

chrisrockwell’s picture

bradjones1’s picture

Adding related core issue with a patch to at least reveal the fields.

mglaman’s picture

Status: Active » Closed (works as designed)

As far as I can tell this issue was caused by Commerce. Core handles it just fine. See #2973141: The `commerce_entity_bundle` Views filter plugin needs to support plugin bundles.