Unable to enable Display builder for an entity view

Created on 30 July 2025, 4 days ago

Problem/Motivation

After the most recent changes in 📌 Implement WithDisplayBuilderInterface in Entity View Active it seems like simply enabling a Display builder for an entity view does not work.

Steps to reproduce

  1. Install the latest version of Display Suite
  2. Try to enable it for any entity view display

Proposed resolution

After debugging this I could find out that we are using $form_state->getValue('display_builder')[StorageProperties::ConfigEntityId->value] for reading the selected Display builder.

Turns out that we don't have a nested element in that form so we should simply use $form_state->getValue('display_builder') instead.

You can also see when inspecting the HTML code of the form that we do not have a nested structure for the select list iteself.

🐛 Bug report
Status

Active

Version

1.0

Component

display_builder_entity_view

Created by

🇩🇪Germany yannickoo Berlin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024