views-ui-view-preview-section.html.twig

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

Theme override for a views UI preview section.

Available variables:

  • title: The human readable section title.
  • links: A list of contextual links.
  • content: The content for this section preview.

See also

template_preprocess_views_ui_view_preview_section()

1 theme call to views-ui-view-preview-section.html.twig
views_ui_preprocess_views_view in core/modules/views_ui/views_ui.module
Implements hook_preprocess_HOOK() for views templates.

File

core/themes/stable9/templates/admin/views-ui-view-preview-section.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for a views UI preview section.
  5. *
  6. * Available variables:
  7. * - title: The human readable section title.
  8. * - links: A list of contextual links.
  9. * - content: The content for this section preview.
  10. *
  11. * @see template_preprocess_views_ui_view_preview_section()
  12. */
  13. #}
  14. <h1 class="section-title">{{ title }}</h1>
  15. {% if links %}
  16. <div class="contextual">{{ links }}</div>
  17. {% endif %}
  18. <div class="preview-section">{{ content }}</div>

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