textarea.html.twig in Open Social 8.6
Same filename and directory in other branches
- 8.9 themes/socialbase/templates/form/textarea.html.twig
- 8 themes/socialbase/templates/form/textarea.html.twig
- 8.2 themes/socialbase/templates/form/textarea.html.twig
- 8.3 themes/socialbase/templates/form/textarea.html.twig
- 8.4 themes/socialbase/templates/form/textarea.html.twig
- 8.5 themes/socialbase/templates/form/textarea.html.twig
- 8.7 themes/socialbase/templates/form/textarea.html.twig
- 8.8 themes/socialbase/templates/form/textarea.html.twig
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 also
File
themes/socialbase/templates/form/textarea.html.twigView source
- {#
- /**
- * @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-control',
- autogrow ? 'form-control--autogrow'
- ]
- %}
- <textarea {{ attributes.addClass(classes).removeAttribute('rows') }}>{{ value }}</textarea>