Same filename in this branch
  1. 10 core/modules/views_ui/templates/views-ui-views-listing-table.html.twig
  2. 10 core/themes/stable9/templates/admin/views-ui-views-listing-table.html.twig
Same filename and directory in other branches
  1. 8.9.x core/modules/views_ui/templates/views-ui-views-listing-table.html.twig
  2. 9 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
Builds the entity listing as renderable array for table.html.twig.

File

core/modules/views_ui/templates/views-ui-views-listing-table.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for views listing table.
  5. *
  6. * Available variables:
  7. * - headers: Contains table headers.
  8. * - rows: Contains multiple rows. Each row contains:
  9. * - view_name: The human-readable name of the view.
  10. * - machine_name: Machine name of the view.
  11. * - description: The description of the view.
  12. * - displays: List of displays attached to the view.
  13. * - operations: List of available operations.
  14. *
  15. * @see template_preprocess_views_ui_views_listing_table()
  16. *
  17. * @ingroup themeable
  18. */
  19. #}
  20. <table{{ attributes.addClass('responsive-enabled') }}>
  21. <thead>
  22. <tr>
  23. {% for header in headers %}
  24. <th{{ header.attributes }}>{{ header.data }}</th>
  25. {% endfor %}
  26. </tr>
  27. </thead>
  28. <tbody>
  29. {% for row in rows %}
  30. <tr{{ row.attributes }}>
  31. <td class="views-ui-view-name">
  32. <strong data-drupal-selector="views-table-filter-text-source">{{ row.data.view_name.data }}</strong>
  33. </td>
  34. <td class="views-ui-view-machine-name" data-drupal-selector="views-table-filter-text-source">
  35. {{ row.data.machine_name.data }}
  36. </td>
  37. <td class="views-ui-view-description" data-drupal-selector="views-table-filter-text-source">
  38. {{ row.data.description.data }}
  39. </td>
  40. <td class="views-ui-view-displays">
  41. {{ row.data.displays.data }}
  42. </td>
  43. <td class="views-ui-view-operations">
  44. {{ row.data.operations.data }}
  45. </td>
  46. </tr>
  47. {% endfor %}
  48. </tbody>
  49. </table>

Related topics