You are here

views-ui-views-listing-table.html.twig in Drupal 8

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.

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>