Skip to content
Twig Field Finder
Theme

Multi-value paragraphs — inside field template loop

Fill in your field name

Italic values are placeholders: replace them with your own machine names, or let the builder do it.

Reads the entity directly, before field formatters run.

  1. Snippet 1
    {% for item in items %}
      {{ item.content['#paragraph'].field_name.value }}
    {% endfor %}
  2. Snippet 2
    {% for item in items %}
      {{ item.content['#paragraph'].get('field_name').entity.label() }}
    {% endfor %}

Gotcha

Use in field--paragraphs--*.html.twig where items is available. __FIELD__ is a field on the paragraph.