container--text-format-filter-guidelines.html.twig

Same filename in this branch
  1. 11.x core/profiles/demo_umami/themes/umami/templates/components/text_format/container--text-format-filter-guidelines.html.twig
Same filename in other branches
  1. 9 core/profiles/demo_umami/themes/umami/templates/components/text_format/container--text-format-filter-guidelines.html.twig
  2. 9 core/themes/seven/templates/text_format/container--text-format-filter-guidelines.html.twig
  3. 9 core/themes/claro/templates/text_format/container--text-format-filter-guidelines.html.twig
  4. 9 core/themes/bartik/templates/text_format/container--text-format-filter-guidelines.html.twig
  5. 10 core/profiles/demo_umami/themes/umami/templates/components/text_format/container--text-format-filter-guidelines.html.twig
  6. 10 core/themes/claro/templates/text_format/container--text-format-filter-guidelines.html.twig

Theme implementation for text filter guidelines.

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/claro/templates/text_format/container--text-format-filter-guidelines.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme implementation for text filter guidelines.
  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-guidelines',
  22. ]
  23. %}
  24. <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.