- Issue created by @Christian.wiedemann
If I use Media source width UI Patterns UI to assign a background image in Layout Builder the image only appears on entity view not in layout builder edit mode.
Add Media (ui_patterns_settings) in UI Patterns UI and open it in layout builder.
Following code prevents slots to be rendered:
Drupal\ui_patterns\Element\ComponentElementBuilder:201
protected function buildSlot(array $build, string $slot_id, array $definition, array $configuration, array $contexts): array {
if (isset($build['#slots'][$slot_id])) {
// Keep existing slots. Used by ComponentLayout for example.
return $build;
}
The slot is prefilled by the "add Block" Button. So the region is not rendered successfull
For entity view the slot $build['#slots'][$slot_id] is empty so the setted slots are rendered.
Lets discuss that.
Following solutions can be suitable:
Active
2.0
Code