filter-guidelines.html.twig 869 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{#
/**
 * @file
 * 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.
 *
 * @see template_preprocess_filter_tips()
 *
 * @ingroup themeable
 */
#}
{%
  set classes = [
    'filter-guidelines-item',
25
    'filter-guidelines-' ~ format.id,
26
27
28
29
30
31
  ]
%}
<div{{ attributes.addClass(classes) }}>
  <h4 class="label">{{ format.label }}</h4>
  {{ tips }}
</div>