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.
  • row_classes: A list of row class attributes keyed by the row's ID.

See also

template_preprocess()

template_preprocess_views_view_unformatted()

File

drupal/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. * - row_classes: A list of row class attributes keyed by the row's ID.
  10. *
  11. * @see template_preprocess()
  12. * @see template_preprocess_views_view_unformatted()
  13. *
  14. * @ingroup themeable
  15. */
  16. #}
  17. {% if title %}
  18. <h3>{{ title }}</h3>
  19. {% endif %}
  20. {% for id, row in rows %}
  21. <div{{ row_classes[id] }}>
  22. {{ row }}
  23. </div>
  24. {% endfor %}

Related topics