annotate core/themes/classy/templates/content-edit/text-format-wrapper.html.twig @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 4c8ae668cc8c
children
rev   line source
Chris@0 1 {#
Chris@0 2 /**
Chris@0 3 * @file
Chris@0 4 * Theme override for a text format-enabled form element.
Chris@0 5 *
Chris@0 6 * Available variables:
Chris@0 7 * - children: Text format element children.
Chris@0 8 * - description: Text format element description.
Chris@0 9 * - attributes: HTML attributes for the containing element.
Chris@0 10 * - aria_description: Flag for whether or not an ARIA description has been
Chris@0 11 * added to the description container.
Chris@0 12 *
Chris@0 13 * @see template_preprocess_text_format_wrapper()
Chris@0 14 */
Chris@0 15 #}
Chris@0 16 <div class="js-text-format-wrapper text-format-wrapper js-form-item form-item">
Chris@0 17 {{ children }}
Chris@0 18 {% if description %}
Chris@0 19 {%
Chris@0 20 set classes = [
Chris@0 21 aria_description ? 'description',
Chris@0 22 ]
Chris@0 23 %}
Chris@0 24 <div{{ attributes.addClass(classes) }}>{{ description }}</div>
Chris@0 25 {% endif %}
Chris@0 26 </div>