Problem/Motivation

The bundle plugin system is a great solution to provide entity bundles in code. However often you will still want to use the UI for managing fields, form- and view modes for each bundle.

It would be nice if the module also provides routing and and controllers for the bundles provided by the bundle plugins.

That way bundles may indicate the 'field_ui_base_route' property to point at the bundle plugin page and the field management tabs will automatically appear.

Steps to reproduce

Proposed resolution

Remaining tasks

I've added the necessary annotation to the 'entity_test_bundle_plugin' entity type as an example. It would be nice to implement tests.

User interface changes

API changes

Data model changes

Issue fork entity-3307593

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nuez created an issue. See original summary.

nuez’s picture

Status: Active » Needs review

Attribute to Finalist

nuez’s picture

nuez’s picture

nuez’s picture

Issue summary: View changes
nuez’s picture

Issue summary: View changes
joachim’s picture

Have a look at https://www.drupal.org/project/entity_admin_handlers - it sounds like you're doing something similar.

nuez’s picture

Have a look at https://www.drupal.org/project/entity_admin_handlers - it sounds like you're doing something similar.

I had a look and the module does exactly what I was looking for in pretty much the same way. I can also confirm it works.

However, could it be a good idea to add this to the contrib Entity module anyway? To make the bundle plugins a little but more intuitive and straightforward?

Up to the maintainers to close the issue or do something with this, for now I'll leave this on 'Needs review'.