Problem/Motivation
After upgrading Drupal core to 11.4.x, choosing/enabling a display mode from the "Manage custom elements" page no longer enables that display mode for the bundle. The display mode can be selected and the form submitted with no errors, but it remains disabled — no active entity view display is created for it.
This issue is caused by a recent Drupal core update to how display modes are managed. Core issue #3564234: Add display-builder agnostic overview page for display modes, shipped in core 11.4.x (see change record), changed how display modes are enabled/disabled for a bundle — moving that functionality off the default view mode edit form and onto a new overview page.
Since custom_elements_ui's "Manage custom elements" form is built on top of that core form, it was directly affected by this update.
Steps to reproduce
- Install/update Drupal core to 11.4.x.
- Enable Custom Elements + custom_elements_ui.
- Go to Structure > [entity type] > [bundle] > Manage custom elements.
- Select a display mode to enable and save the form. — the display mode still shows as not enabled; no corresponding entity view display was created/activated.
Proposed resolution
Rebuild custom_elements_ui's display-mode enable/disable UI to mirror core's new overview page pattern introduced in #3564234 (enabled/disabled display mode tables), rather than relying on the old checkbox fieldset that used to live on
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | after.PNG | 34.7 KB | angel_devoeted |
| #5 | before.PNG | 37.05 KB | angel_devoeted |
Issue fork custom_elements-3612990
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:
Comments
Comment #3
gokul.jayan commentedComment #5
angel_devoeted commentedTested
MR !188onDrupal 11.x (11.4.x-dev)and confirmed that enabling a display mode on the "Manage custom elements" page now works as expected, successfully creating the corresponding display and showing the status message with the configuration link.The implementation looks solid
before:

after:

Comment #7
fagoThank you for the review and help testing. Merged then!