views-view-grid.html.twig
Default theme implementation for views to display rows in a grid.
Available variables:
- attributes: HTML attributes for the wrapping element.
- title: The title of this group of rows.
- view: The view object.
- rows: The rendered view results.
-
options: The view plugin style options.
- row_class_default: A flag indicating whether default classes should be used on rows.
- col_class_default: A flag indicating whether default classes should be used on columns.
-
items: A list of grid items. Each item contains a list of rows or columns. The order in what comes first (row or column) depends on which alignment type is chosen (horizontal or vertical).
- attributes: HTML attributes for each row or column.
-
content: A list of columns or rows. Each row or column contains:
- attributes: HTML attributes for each row or column.
- content: The row or column contents.
See also
template_preprocess_views_view_grid()
File
core/modules/views/templates/views-view-grid.html.twigRelated 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-grid.html.twig/8.1.x