You are here

dropbutton-wrapper.html.twig in Drupal 8

Theme override for a dropbutton wrapper.

Available variables:

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

See also

template_preprocess()

File

core/themes/classy/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. {% spaceless %}
  14. <div class="dropbutton-wrapper">
  15. <div class="dropbutton-widget">
  16. {{ children }}
  17. </div>
  18. </div>
  19. {% endspaceless %}
  20. {% endif %}