Mercurial > hg > cmmr2012-drupal-site
diff core/themes/classy/templates/content-edit/text-format-wrapper.html.twig @ 0:c75dbcec494b
Initial commit from drush-created site
author | Chris Cannam |
---|---|
date | Thu, 05 Jul 2018 14:24:15 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/themes/classy/templates/content-edit/text-format-wrapper.html.twig Thu Jul 05 14:24:15 2018 +0000 @@ -0,0 +1,26 @@ +{# +/** + * @file + * Theme override for a text format-enabled form element. + * + * Available variables: + * - children: Text format element children. + * - description: Text format element description. + * - attributes: HTML attributes for the containing element. + * - aria_description: Flag for whether or not an ARIA description has been + * added to the description container. + * + * @see template_preprocess_text_format_wrapper() + */ +#} +<div class="js-text-format-wrapper text-format-wrapper js-form-item form-item"> + {{ children }} + {% if description %} + {% + set classes = [ + aria_description ? 'description', + ] + %} + <div{{ attributes.addClass(classes) }}>{{ description }}</div> + {% endif %} +</div>