Security update for Core, with self-updated composer
[yaffs-website] / web / themes / contrib / bootstrap / templates / input / textarea.html.twig
1 {#
2 /**
3  * @file
4  * Bootstrap theme implementation 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  * @ingroup templates
14  *
15  * @see template_preprocess_textarea()
16  */
17 #}
18 {%
19   set classes = [
20     'form-textarea',
21     'form-control',
22     resizable ? 'resize-' ~ resizable,
23     required ? 'required',
24   ]
25 %}
26 <div{{ wrapper_attributes.addClass('form-textarea-wrapper') }}>
27   <textarea{{ attributes.addClass(classes) }}>{{ value }}</textarea>
28 </div>