Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
image_sizes
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
image_sizes
Commits
11f3b0c0
Commit
11f3b0c0
authored
3 years ago
by
Erik Seifert
Browse files
Options
Downloads
Patches
Plain Diff
Fix: add attribute merging
parent
ad5e8109
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Element/ImageSizes.php
+3
-0
3 additions, 0 deletions
src/Element/ImageSizes.php
with
3 additions
and
0 deletions
src/Element/ImageSizes.php
+
3
−
0
View file @
11f3b0c0
...
...
@@ -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'
];
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment