dropbutton-wrapper.html.twig

Same filename in this branch
  1. 10 core/themes/stable9/templates/form/dropbutton-wrapper.html.twig
  2. 10 core/modules/system/templates/dropbutton-wrapper.html.twig
Same filename in other branches
  1. 9 core/themes/stable9/templates/form/dropbutton-wrapper.html.twig
  2. 9 core/themes/stable/templates/form/dropbutton-wrapper.html.twig
  3. 9 core/themes/starterkit_theme/templates/form/dropbutton-wrapper.html.twig
  4. 9 core/themes/classy/templates/form/dropbutton-wrapper.html.twig
  5. 9 core/modules/system/templates/dropbutton-wrapper.html.twig
  6. 8.9.x core/themes/stable/templates/form/dropbutton-wrapper.html.twig
  7. 8.9.x core/themes/classy/templates/form/dropbutton-wrapper.html.twig
  8. 8.9.x core/modules/system/templates/dropbutton-wrapper.html.twig
  9. 11.x core/themes/stable9/templates/form/dropbutton-wrapper.html.twig
  10. 11.x core/themes/starterkit_theme/templates/form/dropbutton-wrapper.html.twig
  11. 11.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/starterkit_theme/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. {% apply spaceless %}
  14. <div class="dropbutton-wrapper" data-drupal-ajax-container>
  15. <div class="dropbutton-widget">
  16. {{ children }}
  17. </div>
  18. </div>
  19. {% endapply %}
  20. {% endif %}

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