- Issue created by @Anybody
- 🇷🇺Russia Chi
Seems that should belong to Twig Field Value module.
Or we could create a page with examples in Twig in Drupal → hub. - Status changed to Closed: won't fix
over 1 year ago 5:23am 27 May 2023
Sometimes when using drupal_field() you only want to output the field value, not the label etc.
For the cheat sheet it would be helpful to have such an example. This requires:
https://www.drupal.org/project/twig_field_value →
Sth. like:
Only show the field (requires https://www.drupal.org/project/twig_field_value):
{{ drupal_field('field_image', 'node', 1, 'teaser')|field_value }}
If you agree, this is a nice, typical one, I'll add a MR for that addition.
Closed: won't fix
3.0
Documentation
Seems that should belong to Twig Field Value module.
Or we could create a page with examples in
Twig in Drupal →
hub.