container--administration-menu.html.twig
Same filename and directory in other branches
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
- {#
- /**
- * @file
- * 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 template_preprocess_container()
- *
- * @ingroup themeable
- */
- #}
- {%
- set classes = [
- has_parent ? 'js-form-wrapper',
- has_parent ? 'form-wrapper',
- ]
- %}
- <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.