Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / themes / classy / templates / form / textarea.html.twig
1 {#
2 /**
3  * @file
4  * Theme override for a 'textarea' #type form element.
5  *
6  * Available variables
7  * - wrapper_attributes: A list of HTML attributes for the wrapper element.
8  * - attributes: A list of HTML attributes for the <textarea> element.
9  * - resizable: An indicator for whether the textarea is resizable.
10  * - required: An indicator for whether the textarea is required.
11  * - value: The textarea content.
12  *
13  * @see template_preprocess_textarea()
14  */
15 #}
16 {%
17   set classes = [
18     'form-textarea',
19     resizable ? 'resize-' ~ resizable,
20     required ? 'required',
21   ]
22 %}
23 <div{{ wrapper_attributes.addClass('form-textarea-wrapper') }}>
24   <textarea{{ attributes.addClass(classes) }}>{{ value }}</textarea>
25 </div>