Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

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

Same filename in this branch
  1. 11.1.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>

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal