filter-guidelines.html.twig

Same filename in this branch
  1. 9 core/profiles/demo_umami/themes/umami/templates/classy/content-edit/filter-guidelines.html.twig
  2. 9 core/themes/olivero/templates/filter/filter-guidelines.html.twig
  3. 9 core/themes/stable9/templates/content-edit/filter-guidelines.html.twig
  4. 9 core/themes/seven/templates/classy/content-edit/filter-guidelines.html.twig
  5. 9 core/themes/claro/templates/filter/filter-guidelines.html.twig
  6. 9 core/themes/bartik/templates/classy/content-edit/filter-guidelines.html.twig
  7. 9 core/themes/stable/templates/content-edit/filter-guidelines.html.twig
  8. 9 core/themes/classy/templates/content-edit/filter-guidelines.html.twig
  9. 9 core/modules/filter/templates/filter-guidelines.html.twig
Same filename in other branches
  1. 8.9.x core/profiles/demo_umami/themes/umami/templates/classy/content-edit/filter-guidelines.html.twig
  2. 8.9.x core/themes/seven/templates/classy/content-edit/filter-guidelines.html.twig
  3. 8.9.x core/themes/claro/templates/filter/filter-guidelines.html.twig
  4. 8.9.x core/themes/bartik/templates/classy/content-edit/filter-guidelines.html.twig
  5. 8.9.x core/themes/stable/templates/content-edit/filter-guidelines.html.twig
  6. 8.9.x core/themes/classy/templates/content-edit/filter-guidelines.html.twig
  7. 8.9.x core/modules/filter/templates/filter-guidelines.html.twig
  8. 10 core/profiles/demo_umami/themes/umami/templates/classy/content-edit/filter-guidelines.html.twig
  9. 10 core/themes/olivero/templates/filter/filter-guidelines.html.twig
  10. 10 core/themes/stable9/templates/content-edit/filter-guidelines.html.twig
  11. 10 core/themes/claro/templates/filter/filter-guidelines.html.twig
  12. 10 core/themes/starterkit_theme/templates/content-edit/filter-guidelines.html.twig
  13. 10 core/modules/filter/templates/filter-guidelines.html.twig
  14. 11.x core/profiles/demo_umami/themes/umami/templates/classy/content-edit/filter-guidelines.html.twig
  15. 11.x core/themes/olivero/templates/filter/filter-guidelines.html.twig
  16. 11.x core/themes/stable9/templates/content-edit/filter-guidelines.html.twig
  17. 11.x core/themes/claro/templates/filter/filter-guidelines.html.twig
  18. 11.x core/themes/starterkit_theme/templates/content-edit/filter-guidelines.html.twig
  19. 11.x core/modules/filter/templates/filter-guidelines.html.twig

Theme override for guidelines for a text format.

Available variables:

  • format: Contains information about the current text format, including the following:

    • name: The name of the text format, potentially unsafe and needs to be escaped.
    • format: The machine name of the text format, e.g. 'basic_html'.
  • attributes: HTML attributes for the containing element.
  • tips: Descriptions and a CSS ID in the form of 'module-name/filter-id' (only used when 'long' is TRUE) for each filter in one or more text formats.

See also

template_preprocess_filter_tips()

1 theme call to filter-guidelines.html.twig
TextFormat::processFormat in core/modules/filter/src/Element/TextFormat.php
Expands an element into a base element with text format selector attached.

File

core/themes/starterkit_theme/templates/content-edit/filter-guidelines.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for guidelines for a text format.
  5. *
  6. * Available variables:
  7. * - format: Contains information about the current text format, including the
  8. * following:
  9. * - name: The name of the text format, potentially unsafe and needs to be
  10. * escaped.
  11. * - format: The machine name of the text format, e.g. 'basic_html'.
  12. * - attributes: HTML attributes for the containing element.
  13. * - tips: Descriptions and a CSS ID in the form of 'module-name/filter-id'
  14. * (only used when 'long' is TRUE) for each filter in one or more text
  15. * formats.
  16. *
  17. * @see template_preprocess_filter_tips()
  18. */
  19. #}
  20. {%
  21. set classes = [
  22. 'filter-guidelines-item',
  23. 'filter-guidelines-' ~ format.id,
  24. ]
  25. %}
  26. <div{{ attributes.addClass(classes) }}>
  27. <h4 class="label">{{ format.label }}</h4>
  28. {{ tips }}
  29. </div>

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