1. 8.5.x core/themes/stable/templates/views/views-view-unformatted.html.twig
  2. 8.5.x core/modules/views/templates/views-view-unformatted.html.twig
  3. 8.5.x core/themes/classy/templates/views/views-view-unformatted.html.twig
  4. 8.0.x core/modules/views/templates/views-view-unformatted.html.twig
  5. 8.0.x core/themes/stable/templates/views/views-view-unformatted.html.twig
  6. 8.0.x core/themes/classy/templates/views/views-view-unformatted.html.twig
  7. 8.1.x core/themes/classy/templates/views/views-view-unformatted.html.twig
  8. 8.1.x core/modules/views/templates/views-view-unformatted.html.twig
  9. 8.1.x core/themes/stable/templates/views/views-view-unformatted.html.twig
  10. 8.2.x core/themes/classy/templates/views/views-view-unformatted.html.twig
  11. 8.2.x core/modules/views/templates/views-view-unformatted.html.twig
  12. 8.2.x core/themes/stable/templates/views/views-view-unformatted.html.twig
  13. 8.3.x core/themes/classy/templates/views/views-view-unformatted.html.twig
  14. 8.3.x core/modules/views/templates/views-view-unformatted.html.twig
  15. 8.3.x core/themes/stable/templates/views/views-view-unformatted.html.twig
  16. 8.4.x core/modules/views/templates/views-view-unformatted.html.twig
  17. 8.4.x core/themes/stable/templates/views/views-view-unformatted.html.twig
  18. 8.4.x core/themes/classy/templates/views/views-view-unformatted.html.twig
  19. 8.6.x core/themes/stable/templates/views/views-view-unformatted.html.twig
  20. 8.6.x core/modules/views/templates/views-view-unformatted.html.twig
  21. 8.6.x core/themes/classy/templates/views/views-view-unformatted.html.twig

Default theme implementation to display a view of unformatted rows.

Available variables:

  • title: The title of this group of rows. May be empty.
  • rows: A list of the view's row items.
    • attributes: The row's HTML attributes.
    • content: The row's content.
  • view: The view object.
  • default_row_class: A flag indicating whether default classes should be used on rows.

See also

template_preprocess_views_view_unformatted()

File

core/modules/views/templates/views-view-unformatted.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display a view of unformatted rows.
  5. *
  6. * Available variables:
  7. * - title: The title of this group of rows. May be empty.
  8. * - rows: A list of the view's row items.
  9. * - attributes: The row's HTML attributes.
  10. * - content: The row's content.
  11. * - view: The view object.
  12. * - default_row_class: A flag indicating whether default classes should be
  13. * used on rows.
  14. *
  15. * @see template_preprocess_views_view_unformatted()
  16. *
  17. * @ingroup themeable
  18. */
  19. #}
  20. {% if title %}
  21. <h3>{{ title }}</h3>
  22. {% endif %}
  23. {% for row in rows %}
  24. {%
  25. set row_classes = [
  26. default_row_class ? 'views-row',
  27. ]
  28. %}
  29. <div{{ row.attributes.addClass(row_classes) }}>
  30. {{ row.content }}
  31. </div>
  32. {% endfor %}

Related topics