dropbutton-wrapper.html.twig

Same filename in this branch
  1. 11.x core/themes/stable9/templates/form/dropbutton-wrapper.html.twig
  2. 11.x core/themes/starterkit_theme/templates/form/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. 10 core/themes/stable9/templates/form/dropbutton-wrapper.html.twig
  10. 10 core/themes/starterkit_theme/templates/form/dropbutton-wrapper.html.twig
  11. 10 core/modules/system/templates/dropbutton-wrapper.html.twig

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" data-drupal-ajax-container>
  17. <div class="dropbutton-widget">
  18. {{ children }}
  19. </div>
  20. </div>
  21. {% endapply %}
  22. {% endif %}

Related topics


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