Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / themes / stable / templates / content-edit / filter-tips.html.twig
1 {#
2 /**
3  * @file
4  * Theme override for a set of filter tips.
5  *
6  * Available variables:
7  * - tips: Descriptions and a CSS ID in the form of 'module-name/filter-id'
8  *   (only used when 'long' is TRUE) for each filter in one or more text
9  *   formats.
10  * - long: A flag indicating whether the passed-in filter tips contain extended
11  *   explanations, i.e. intended to be output on the path 'filter/tips'
12  *   (TRUE), or are in a short format, i.e. suitable to be displayed below a
13  *   form element. Defaults to FALSE.
14  * - multiple: A flag indicating there is more than one filter tip.
15  *
16  * @see template_preprocess_filter_tips()
17  */
18 #}
19 {% if multiple %}
20   <h2>{{ 'Text Formats'|t }}</h2>
21 {% endif %}
22
23 {% if tips|length %}
24   {% for name, tip in tips %}
25
26     {% if multiple %}
27       <div{{ attributes }}>
28       <h3>{{ tip.name }}</h3>
29     {% endif %}
30
31     {% if tip.list|length %}
32       <ul>
33       {% for item in tip.list %}
34         <li{{ tip.attributes }}>{{ item.tip }}</li>
35       {% endfor %}
36       </ul>
37     {% endif %}
38
39     {% if multiple %}
40       </div>
41     {% endif %}
42
43   {% endfor %}
44 {% endif %}