Problem/Motivation
While managing the display of the default image_badge bundle, got an error below:
LogicException: Missing bundle entity, entity type badge_type, entity id . in Drupal\Core\Entity\EntityType->getBundleConfigDependency() (line 917 of /var/www/html/web/core/lib/Drupal/Core/Entity/EntityType.php).
And two field_ui_base_route keys in Badge entity's annotation.
* field_ui_base_route = "entity.badge_type.edit_form",
* entity_keys = {
* "id" = "id",
* "bundle" = "type",
* "label" = "name",
* "uuid" = "uuid",
* },
* links = {
* "canonical" = "/admin/badge/{badge}",
* "edit-form" = "/admin/badge/{badge}/edit",
* "delete-form" = "/admin/badge/{badge}/delete"
* },
* field_ui_base_route = "badge.settings"
* )
*/
class Badge extends ContentEntityBase implements BadgeInterface {
Proposed resolution
remove field_ui_base_route = "badge.settings" from Badge entity's annotation.
Remaining tasks
Needs review
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3116502-2.patch | 877 bytes | jungle |
Comments
Comment #2
jungleThe patch is created against commit 3c2386b of branch 8.x-1.x
Comment #4
mohit_aghera commentedThanks for the patch @jungle
It is solving the issue.