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

Same filename in this branch
  1. 8.9.x core/themes/stable/templates/admin/views-ui-views-listing-table.html.twig
  2. 8.9.x core/modules/views_ui/templates/views-ui-views-listing-table.html.twig
Same filename and directory in other branches
  1. 9 core/themes/stable9/templates/admin/views-ui-views-listing-table.html.twig
  2. 9 core/themes/stable/templates/admin/views-ui-views-listing-table.html.twig
  3. 9 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.

@todo Remove this template after https://www.drupal.org/project/drupal/issues/3059872 is fixed.

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/claro/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. * @todo Remove this template after
  18. * https://www.drupal.org/project/drupal/issues/3059872 is fixed.
  19. */
  20. #}
  21. <table{{ attributes.addClass('responsive-enabled') }}>
  22. <thead>
  23. <tr>
  24. {% for header in headers %}
  25. <th{{ header.attributes }}>{{ header.data }}</th>
  26. {% endfor %}
  27. </tr>
  28. </thead>
  29. <tbody>
  30. {% for row in rows %}
  31. <tr{{ row.attributes }}>
  32. <td class="views-ui-view-name">
  33. <strong data-drupal-selector="views-table-filter-text-source">{{ row.data.view_name.data }}</strong>
  34. </td>
  35. <td class="views-ui-view-machine-name" data-drupal-selector="views-table-filter-text-source">
  36. {{ row.data.machine_name.data }}
  37. </td>
  38. <td class="views-ui-view-description" data-drupal-selector="views-table-filter-text-source">
  39. {{ row.data.description.data }}
  40. </td>
  41. <td class="views-ui-view-displays">
  42. {{ row.data.displays.data }}
  43. </td>
  44. <td class="views-ui-view-operations">
  45. {{ row.data.operations.data }}
  46. </td>
  47. </tr>
  48. {% endfor %}
  49. </tbody>
  50. </table>

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