W3cubDocs

/Drupal 8

views-view-list.html.twig

Default theme implementation for a view template to display a list of rows.

Available variables:

  • attributes: HTML attributes for the container.
  • rows: A list of rows for this list.
    • attributes: The row's HTML attributes.
    • content: The row's contents.
  • title: The title of this group of rows. May be empty.
  • list: @todo.
    • type: Starting tag will be either a ul or ol.
    • attributes: HTML attributes for the list element.

See also

template_preprocess_views_view_list()

File

core/modules/views/templates/views-view-list.html.twig

Related topics

Theme system overview
Functions and templates for the user interface that themes can override.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!views!templates!views-view-list.html.twig/8.1.x