Browse Source

Update description of with filter

merge-requests/41/head
Reinhard Hutter 1 year ago
parent
commit
f2dbdeaa24
  1. 2
      docs/cheat-sheet.md

2
docs/cheat-sheet.md

@ -265,7 +265,7 @@ Generates a string representation for the given byte count.
``` ```
## With ## With
This is an opposite of core `without` filter. This is an opposite of core `without` filter and adds properties instead of removing it.
```twig ```twig
{# Set top-level value. #} {# Set top-level value. #}
{{ content.field_image|with('#title', 'Photo'|t) }} {{ content.field_image|with('#title', 'Photo'|t) }}

Loading…
Cancel
Save