Skip to content
Snippets Groups Projects
Commit 11f3b0c0 authored by Erik Seifert's avatar Erik Seifert
Browse files

Fix: add attribute merging

parent ad5e8109
No related branches found
No related tags found
No related merge requests found
......@@ -65,6 +65,9 @@ class ImageSizes extends RenderElement {
],
'data-src-fallback' => static::getFallBackStyle($uri, $style),
];
if (isset($element['#attributes'])) {
$attributes = array_merge($element['#attributes'], $attributes);
}
if (isset($element['#alt'])) {
$attributes['alt'] = $element['#alt'];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment