text-format-wrapper.html.twig 621 Bytes
Newer Older
1
2
3
4
5
6
7
8
{#
/**
 * @file
 * Default theme implementation for a text format-enabled form element.
 *
 * Available variables:
 * - children: Text format element children.
 * - description: Text format element description.
9
 * - attributes: HTML attributes for the containing element.
10
11
 * - aria_description: Flag for whether or not an ARIA description has been
 *   added to the description container.
12
13
 *
 * @see template_preprocess_text_format_wrapper()
14
15
16
17
 *
 * @ingroup themeable
 */
#}
18
<div class="js-text-format-wrapper">
19
20
  {{ children }}
  {% if description %}
21
    <div{{ attributes }}>{{ description }}</div>
22
23
  {% endif %}
</div>