views-ui-views-listing-table.html.twig
Same filename in this branch
Same filename in other branches
- 9 core/themes/stable9/templates/admin/views-ui-views-listing-table.html.twig
- 9 core/themes/stable/templates/admin/views-ui-views-listing-table.html.twig
- 9 core/modules/views_ui/templates/views-ui-views-listing-table.html.twig
- 8.9.x core/themes/claro/templates/admin/views-ui-views-listing-table.html.twig
- 8.9.x core/themes/stable/templates/admin/views-ui-views-listing-table.html.twig
- 8.9.x core/modules/views_ui/templates/views-ui-views-listing-table.html.twig
- 11.x core/themes/stable9/templates/admin/views-ui-views-listing-table.html.twig
- 11.x core/modules/views_ui/templates/views-ui-views-listing-table.html.twig
Default theme implementation for views listing table.
Available variables:
- headers: Contains table headers.
- rows: Contains multiple rows. Each row contains:
- view_name: The human-readable name of the view.
- machine_name: Machine name of the view.
- description: The description of the view.
- displays: List of displays attached to the view.
- operations: List of available operations.
See also
template_preprocess_views_ui_views_listing_table()
1 theme call to views-ui-views-listing-table.html.twig
- ViewListBuilder::render in core/
modules/ views_ui/ src/ ViewListBuilder.php
File
-
core/
modules/ views_ui/ templates/ views-ui-views-listing-table.html.twig
View source
- {#
- /**
- * @file
- * Default theme implementation for views listing table.
- *
- * Available variables:
- * - headers: Contains table headers.
- * - rows: Contains multiple rows. Each row contains:
- * - view_name: The human-readable name of the view.
- * - machine_name: Machine name of the view.
- * - description: The description of the view.
- * - displays: List of displays attached to the view.
- * - operations: List of available operations.
- *
- * @see template_preprocess_views_ui_views_listing_table()
- *
- * @ingroup themeable
- */
- #}
- <table{{ attributes.addClass('responsive-enabled') }}>
- <thead>
- <tr>
- {% for header in headers %}
- <th{{ header.attributes }}>{{ header.data }}</th>
- {% endfor %}
- </tr>
- </thead>
- <tbody>
- {% for row in rows %}
- <tr{{ row.attributes }}>
- <td class="views-ui-view-name">
- <strong data-drupal-selector="views-table-filter-text-source">{{ row.data.view_name.data }}</strong>
- </td>
- <td class="views-ui-view-machine-name" data-drupal-selector="views-table-filter-text-source">
- {{ row.data.machine_name.data }}
- </td>
- <td class="views-ui-view-description" data-drupal-selector="views-table-filter-text-source">
- {{ row.data.description.data }}
- </td>
- <td class="views-ui-view-displays">
- {{ row.data.displays.data }}
- </td>
- <td class="views-ui-view-operations">
- {{ row.data.operations.data }}
- </td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
Related topics
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.