Browse Source

Issue #3356079: Is the drupal_image() responsive parameter example correct?

merge-requests/33/head
Julian Pustkuchen 2 years ago committed by Ivan
parent
commit
adcf39754b
  1. 2
      docs/cheat-sheet.md

2
docs/cheat-sheet.md

@ -102,7 +102,7 @@ See [rendering blocks with Twig Tweak](blocks.md#block-plugin) for details.
{# Render image using 'thumbnail' image style and custom attributes. #}
{{ drupal_image('public://ocean.jpg', 'thumbnail', {alt: 'The alternative text'|t, title: 'The title text'|t}) }}
{# Render responsive image. #}
{# Render responsive image (using a named argument). #}
{{ drupal_image('public://ocean.jpg', 'wide', responsive=true) }}
```

Loading…
Cancel
Save