Move all entity view display components to 'hidden' when Layout Builder is enabled

Created on 20 March 2023, about 1 year ago
Updated 15 February 2024, 4 months ago

Problem/Motivation

When Layout Builder is enabled for an entity, the UI containing the table displaying fields and their display settings is deactivated. It is no longer possible to update those display settings via the UI. I think they stop having any functional purpose too because whatever the Layout Builder settings are is going to determine what gets displayed. They continue to be stored in config in whatever state they were in when Layout Builder was enabled. When using a system like Config Split to maintain different versions of an entity view display config, things like weights of fields present as false positives to changed configuration.

Steps to reproduce

Standard site install
Add fields to page content type
Export config and note the presence of the fields in the content section of the core.entity_view_display.node.page.default config.
Enable Layout Builder for the page content type
Export config again and note that the content section of the core.entity_view_display.node.page.default config remains unchanged.

Proposed resolution

I propose that when Layout Builder is enabled for an entity type, all the fields ("components" in Entity View Display terminology) should get removed from content and moved to hidden.

Remaining tasks

Write a test
Add code to resolve the test

User interface changes

None, I think.

API changes

None, I think.

Data model changes

None, I think.

Release notes snippet

✨ Feature request
Status

Closed: duplicate

Version

11.0 πŸ”₯

Component
Layout builderΒ  β†’

Last updated about 11 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States pyrello

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024