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

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

Default theme implementation 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/modules/views_ui/templates/views-ui-view-preview-section.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation 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. * @ingroup themeable
  14. */
  15. #}
  16. <h1 class="section-title">{{ title }}</h1>
  17. {% if links %}
  18. <div class="contextual">{{ links }}</div>
  19. {% endif %}
  20. <div class="preview-section">{{ content }}</div>

Related topics


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