You are here

container--text-format-filter-wrapper.html.twig in Drupal 9

Theme implementation for the text filter wrapper.

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.

File

core/themes/bartik/templates/text_format/container--text-format-filter-wrapper.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme implementation for the text filter wrapper.
  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. 'filter-wrapper',
  22. ]
  23. %}
  24. <div{{ attributes.addClass(classes) }}>{{ children }}</div>

Related topics