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

Breadcrumb

  1. Drupal Core 11.1.x

dropbutton-wrapper.html.twig

Same filename in this branch
  1. 11.1.x core/themes/stable9/templates/form/dropbutton-wrapper.html.twig
  2. 11.1.x core/themes/starterkit_theme/templates/form/dropbutton-wrapper.html.twig

Default theme implementation for a dropbutton wrapper.

Available variables:

  • children: Contains the child elements of the dropbutton menu.

See also

template_preprocess()

File

core/modules/system/templates/dropbutton-wrapper.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a dropbutton wrapper.
  5. *
  6. * Available variables:
  7. * - children: Contains the child elements of the dropbutton menu.
  8. *
  9. * @see template_preprocess()
  10. *
  11. * @ingroup themeable
  12. */
  13. #}
  14. {% if children %}
  15. <div class="dropbutton-wrapper" data-drupal-ajax-container>
  16. <div class="dropbutton-widget">{{- children -}}</div>
  17. </div>
  18. {%- endif %}

Related topics

Theme system overview
Functions and templates for the user interface that themes can override.
RSS feed
Powered by Drupal