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/starterkit_theme/templates/form/dropbutton-wrapper.html.twig
  2. 11.1.x core/modules/system/templates/dropbutton-wrapper.html.twig

Theme override for a dropbutton wrapper.

Available variables:

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

See also

template_preprocess()

File

core/themes/stable9/templates/form/dropbutton-wrapper.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override 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. #}
  12. {% if children %}
  13. <div class="dropbutton-wrapper" data-drupal-ajax-container>
  14. <div class="dropbutton-widget">{{- children -}}</div>
  15. </div>
  16. {%- endif %}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal