You are here

filter-guidelines.html.twig in Zircon Profile 8

Default theme implementation 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.

File

core/modules/filter/templates/filter-guidelines.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation 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. * @ingroup themeable
  20. */
  21. #}
  22. <div{{ attributes }}>
  23. <h4>{{ format.label }}</h4>
  24. {{ tips }}
  25. </div>

Related topics