filter-guidelines.html.twig in Drupal 10
Same filename in this branch
- 10 core/modules/filter/templates/filter-guidelines.html.twig
- 10 core/themes/starterkit_theme/templates/content-edit/filter-guidelines.html.twig
- 10 core/themes/classy/templates/content-edit/filter-guidelines.html.twig
- 10 core/themes/claro/templates/filter/filter-guidelines.html.twig
- 10 core/themes/olivero/templates/filter/filter-guidelines.html.twig
- 10 core/themes/stable9/templates/content-edit/filter-guidelines.html.twig
- 10 core/themes/stable/templates/content-edit/filter-guidelines.html.twig
- 10 core/themes/seven/templates/classy/content-edit/filter-guidelines.html.twig
- 10 core/themes/bartik/templates/classy/content-edit/filter-guidelines.html.twig
- 10 core/profiles/demo_umami/themes/umami/templates/classy/content-edit/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
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/profiles/demo_umami/themes/umami/templates/classy/content-edit/filter-guidelines.html.twigView source
- {#
- /**
- * @file
- * 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 template_preprocess_filter_tips()
- */
- #}
- {%
- set classes = [
- 'filter-guidelines-item',
- 'filter-guidelines-' ~ format.id,
- ]
- %}
- <div{{ attributes.addClass(classes) }}>
- <h4 class="label">{{ format.label }}</h4>
- {{ tips }}
- </div>