Active
Project:
Display Builder
Version:
1.0.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
7 Jul 2026 at 06:57 UTC
Updated:
13 Jul 2026 at 09:08 UTC
Jump to comment: Most recent
If a component is a pattern (ie: include multiple components, like a header or a footer), it needs to be wrapped in a dom element or some sub components will be "draggable" in the Display Builder "builder" Island and will raise an error when moved as they do not exist in the config.
Comments
Comment #2
mogtofu33 commentedComment #3
pdureau commentedComment #4
pdureau commented2 infos which may be useful.
A pattern source tree has always a single root, which is the selected source from which the pattern entity has been created.
https://git.drupalcode.org/project/display_builder/-/blob/1.0.x/src/Enti...
BuilderPanel::hasMultipleRoot()is already checking if a renderable has multiple HTMl elements at the root:https://git.drupalcode.org/project/display_builder/-/blob/1.0.x/src/Plug...
And wrapping it if necessary:
But it is called only from
::buildSingleBlock(), so not for components.