Problem/Motivation

The form alter using form_entity_view_display_edit_form_alter hides the entire form, but the 'Custom display settings' on the Default form is needed in order to enable other view modes for that bundle.

Steps to reproduce

  1. Install Drupal CMS
  2. Visit the Default view mode edit page for the utility page
  3. See that you cannot enable a new view mode

Proposed resolution

Check for this on the form and don't remove it.

CommentFileSizeAuthor
#4 Screenshot 2026-03-26 at 3.42.24 pm.png110.57 KBpameeela

Issue fork drupal_cms-3581778

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:

Comments

pameeela created an issue. See original summary.

pameeela’s picture

Status: Active » Needs review
pameeela’s picture

StatusFileSize
new110.57 KB

phenaproxima’s picture

Status: Needs review » Fixed

Merged into 2.x and cherry-picked to 2.1.x.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.