Entity display edit form alter prevents enabling view modes for nodes
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3581778. --> Reported by: [pameeela](https://www.drupal.org/user/1431110) Related to !868 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>The form alter using <code>form_entity_view_display_edit_form_alter</code> 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.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <ol> <li>Install Drupal CMS</li> <li>Visit the Default view mode edit page for the utility page</li> <li>See that you cannot enable a new view mode</li> </ol> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Check for this on the form and don't remove it.</p>
issue