views-ui-views-listing-table.html.twig

Same filename in this branch
  1. 9 core/themes/stable/templates/admin/views-ui-views-listing-table.html.twig
  2. 9 core/modules/views_ui/templates/views-ui-views-listing-table.html.twig
Same filename in other branches
  1. 8.9.x core/themes/claro/templates/admin/views-ui-views-listing-table.html.twig
  2. 8.9.x core/themes/stable/templates/admin/views-ui-views-listing-table.html.twig
  3. 8.9.x core/modules/views_ui/templates/views-ui-views-listing-table.html.twig
  4. 10 core/themes/stable9/templates/admin/views-ui-views-listing-table.html.twig
  5. 10 core/modules/views_ui/templates/views-ui-views-listing-table.html.twig
  6. 11.x core/themes/stable9/templates/admin/views-ui-views-listing-table.html.twig
  7. 11.x core/modules/views_ui/templates/views-ui-views-listing-table.html.twig

Theme override 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/themes/stable9/templates/admin/views-ui-views-listing-table.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override 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. #}
  18. <table{{ attributes.addClass('responsive-enabled') }}>
  19. <thead>
  20. <tr>
  21. {% for header in headers %}
  22. <th{{ header.attributes }}>{{ header.data }}</th>
  23. {% endfor %}
  24. </tr>
  25. </thead>
  26. <tbody>
  27. {% for row in rows %}
  28. <tr{{ row.attributes }}>
  29. <td class="views-ui-view-name">
  30. <strong data-drupal-selector="views-table-filter-text-source">{{ row.data.view_name.data }}</strong>
  31. </td>
  32. <td class="views-ui-view-machine-name" data-drupal-selector="views-table-filter-text-source">
  33. {{ row.data.machine_name.data }}
  34. </td>
  35. <td class="views-ui-view-description" data-drupal-selector="views-table-filter-text-source">
  36. {{ row.data.description.data }}
  37. </td>
  38. <td class="views-ui-view-displays">
  39. {{ row.data.displays.data }}
  40. </td>
  41. <td class="views-ui-view-operations">
  42. {{ row.data.operations.data }}
  43. </td>
  44. </tr>
  45. {% endfor %}
  46. </tbody>
  47. </table>

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.