Skip to content
Snippets Groups Projects
Commit e7ceb90a authored by Justin Toupin's avatar Justin Toupin
Browse files

Allow providing default attributes in #layout_paragraphs_layout render array.

parent aebfcb31
No related branches found
No related tags found
No related merge requests found
......@@ -195,7 +195,7 @@ class LayoutParagraphsBuilder extends RenderElement implements ContainerFactoryP
],
'id' => Html::getUniqueId($this->layoutParagraphsLayout->id()),
'data-lpb-id' => $this->layoutParagraphsLayout->id(),
];
] + ($element['#attributes'] ?? []);
$element['#attached']['library'] = ['layout_paragraphs/builder'];
$element['#attached']['drupalSettings']['lpBuilder'][$this->layoutParagraphsLayout->id()] = $this->layoutParagraphsLayout->getSettings();
$element['#is_empty'] = $this->layoutParagraphsLayout->isEmpty();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment