dropbutton-wrapper.html.twig in Drupal 9
Same filename in this branch
- 9 core/modules/system/templates/dropbutton-wrapper.html.twig
- 9 core/themes/starterkit_theme/templates/form/dropbutton-wrapper.html.twig
- 9 core/themes/classy/templates/form/dropbutton-wrapper.html.twig
- 9 core/themes/stable9/templates/form/dropbutton-wrapper.html.twig
- 9 core/themes/stable/templates/form/dropbutton-wrapper.html.twig
Theme override for a dropbutton wrapper.
Available variables:
- children: Contains the child elements of the dropbutton menu.
See also
File
core/themes/stable9/templates/form/dropbutton-wrapper.html.twigView source
- {#
- /**
- * @file
- * Theme override for a dropbutton wrapper.
- *
- * Available variables:
- * - children: Contains the child elements of the dropbutton menu.
- *
- * @see template_preprocess()
- */
- #}
- {% if children %}
- {% apply spaceless %}
- <div class="dropbutton-wrapper">
- <div class="dropbutton-widget">
- {{ children }}
- </div>
- </div>
- {% endapply %}
- {% endif %}