You are here

dropbutton-wrapper.html.twig in Drupal 10

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">
  15. <div class="dropbutton-widget">
  16. {{ children }}
  17. </div>
  18. </div>
  19. {% endapply %}
  20. {% endif %}