- Issue created by @sethhill
- Merge request !13#3452441: Entity view alter removes properties from build array β (Open) created by sethhill
- Status changed to Needs review
21 days ago 1:11pm 4 June 2024
First, thanks for the amazing work thus far! We have been working extensively with SDC in general with our site building process that leverages Layout Paragraphs β and Mercury Editor β . Both of those modules add properties to the build array that are required for functionality, including attached libraries, attributes, and pre-/post-render objects.
When enabling SDC Display and attempting to map field values to props and slots, we encountered lots of issues that prevented Layout Paragraphs from functioning correctly (and by extension, Mercury Editor). If we used vanilla Paragraphs, things seemed to work fine.
This seems to happen because many existing properties in the build array are obliterated in sdc_display_entity_view_alter()
. Propose leaving the build array as it stands, and only altering it by inserting the component props and slots, and removing fields that have been mapped to those props/slots.
The submitted MR endeavors do provide that resolution, but it has definitely not been tested across a variety of scenarios. It seemed to make Layout Paragraphs more compatible with SDC Display, but this approach may introduce new trouble with other modules or build approaches.
Needs review
1.0
Code