top-bar.html.twig
Same filename in other branches
Default theme implementation for the navigation top bar.
Available variables:
- element: The top bar render element.
- tools: The tools region of the top bar.
- context: The context region of the top bar.
- actions: The actions region of the top bar.
1 theme call to top-bar.html.twig
- TopBar::getInfo in core/
modules/ navigation/ src/ Element/ TopBar.php - Returns the element properties for this element.
File
-
core/
modules/ navigation/ templates/ top-bar.html.twig
View source
- {#
- /**
- * @file
- * Default theme implementation for the navigation top bar.
- *
- * Available variables:
- * - element: The top bar render element.
- * - tools: The tools region of the top bar.
- * - context: The context region of the top bar.
- * - actions: The actions region of the top bar.
- *
- * @ingroup themeable
- */
- #}
- {% set attributes = create_attribute() %}
- <div {{ attributes.addClass('top-bar').setAttribute('data-drupal-admin-styles', '') }}>
- <div class="top-bar__content">
- <div class="top-bar__tools">
- {{- tools -}}
- </div>
- <div class="top-bar__context">
- {{- context -}}
- </div>
- <div class="top-bar__actions">
- {{- actions -}}
- </div>
- </div>
- </div>
Related topics
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.