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