Skip to content

Commit

Permalink
Allow picture element options change from twig function (#2351)
Browse files Browse the repository at this point in the history
Co-authored-by: Harri Häivälä <[email protected]>
  • Loading branch information
haivala and Harri Häivälä authored Nov 20, 2023
1 parent 031fa45 commit 574340b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Provider/ImageProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function getHelperProperties(MediaInterface $media, string $format, array
}

unset($options['picture']);
$pictureParams['img'] = $params + $options;
$pictureParams['img'] = array_merge($params, $options);
$params = ['picture' => $pictureParams];
} elseif (MediaProviderInterface::FORMAT_ADMIN !== $format) {
$srcSetFormats = $this->getFormats();
Expand Down

0 comments on commit 574340b

Please sign in to comment.