Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comment #2
chrisrockwell CreditAttribution: chrisrockwell commentedNot 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.
Comment #3
joachim CreditAttribution: joachim as a volunteer commentedI'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.
Comment #4
joachim CreditAttribution: joachim as a volunteer commentedThis 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.
Comment #5
chrisrockwell CreditAttribution: chrisrockwell commentedAdding related issue
Comment #6
bradjones1Adding related core issue with a patch to at least reveal the fields.
Comment #7
mglamanThe bug is here: #2973122: Views `bundle` filter does not handle non-entity bundles in dependency calculations
Comment #8
mglamanAs 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.