Skip to content
Snippets Groups Projects
Commit f56533c5 authored by Shibin Das's avatar Shibin Das
Browse files

Issue #3495393: Fix documentation in code regarding usage of Twig Filter

parent 7a091e2d
No related branches found
No related tags found
No related merge requests found
......@@ -214,15 +214,16 @@ class RiftPicture {
* @param array $config
* Configuration for generating srcset.
* <code>
* node.field_common_image.0.entity|rift_picture({
* sources: "120w 320w 320w 1024w 1024w",
* aspect_ratios: "1x1 16x9 1x1 1x1 1x1",
* quality: {
* 1x: "80 80 80 80 80",
* 2x: "40 40 40 40 40",
* },
* formats: ['webp', 'avif', 'jpeg'],
* })
* node.field_common_image.0.entity|rift_picture({
* sizes: 'xs:100vw sm:100vw md:50vw lg:50vw xl:50vw',
* aspect_ratios: "1x1 16x9 1x1 1x1 1x1",
* quality: {
* "1x": "80",
* "2x": "40",
* },
* url_generation_strategy: "dummyimage",
* formats: ['webp', 'avif', 'jpeg'],
* })
* </code>.
*
* @return string[]
......
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