You are here

dropbutton-wrapper.html.twig in Drupal 10

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

Related topics