views-ui-view-displays-list.html.twig

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

Theme override for views displays on the views listing page.

Available variables:

  • displays: Contains multiple display instances. Each display contains:

    • display: Display name.
    • path: Path to display, if any.
1 theme call to views-ui-view-displays-list.html.twig
ViewListBuilder::buildRow in core/modules/views_ui/src/ViewListBuilder.php
Builds a row for an entity in the entity listing.

File

core/themes/stable9/templates/admin/views-ui-view-displays-list.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for views displays on the views listing page.
  5. *
  6. * Available variables:
  7. * - displays: Contains multiple display instances. Each display contains:
  8. * - display: Display name.
  9. * - path: Path to display, if any.
  10. */
  11. #}
  12. <ul>
  13. {% for display in displays %}
  14. <li>
  15. {% if display.path %}
  16. {{ display.display }} <span data-drupal-selector="views-table-filter-text-source">({{ display.path }})</span>
  17. {% else %}
  18. {{ display.display }}
  19. {% endif %}
  20. </li>
  21. {% endfor %}
  22. </ul>

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