Version 1
[yaffs-website] / web / core / modules / filter / templates / text-format-wrapper.html.twig
diff --git a/web/core/modules/filter/templates/text-format-wrapper.html.twig b/web/core/modules/filter/templates/text-format-wrapper.html.twig
new file mode 100644 (file)
index 0000000..de61d92
--- /dev/null
@@ -0,0 +1,23 @@
+{#
+/**
+ * @file
+ * Default theme implementation 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()
+ *
+ * @ingroup themeable
+ */
+#}
+<div class="js-text-format-wrapper js-form-item form-item">
+  {{ children }}
+  {% if description %}
+    <div{{ attributes }}>{{ description }}</div>
+  {% endif %}
+</div>