container--administration-menu.html.twig

Same filename and directory in other branches
  1. main core/themes/admin/templates/navigation/container--administration-menu.html.twig

Specific container for Gin Toolbar module, which relies on this markup.

Available variables:

  • attributes: HTML attributes for the containing element.
  • children: The rendered child elements of the container.
  • has_parent: A flag to indicate that the container has one or more parent containers.

See also

template_preprocess_container()

File

core/themes/admin/templates/navigation/container--administration-menu.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Specific container for Gin Toolbar module, which relies on this markup.
  5. *
  6. * Available variables:
  7. * - attributes: HTML attributes for the containing element.
  8. * - children: The rendered child elements of the container.
  9. * - has_parent: A flag to indicate that the container has one or more parent
  10. containers.
  11. *
  12. * @see template_preprocess_container()
  13. *
  14. * @ingroup themeable
  15. */
  16. #}
  17. {%
  18. set classes = [
  19. has_parent ? 'js-form-wrapper',
  20. has_parent ? 'form-wrapper',
  21. ]
  22. %}
  23. <div{{ attributes.addClass(classes) }}>{{ children }}</div>

Related topics


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