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.