textarea.html.twig in Drupal 10
Same filename in this branch
- 10 core/modules/system/templates/textarea.html.twig
- 10 core/themes/starterkit_theme/templates/form/textarea.html.twig
- 10 core/themes/classy/templates/form/textarea.html.twig
- 10 core/themes/claro/templates/form/textarea.html.twig
- 10 core/themes/stable9/templates/form/textarea.html.twig
- 10 core/themes/stable/templates/form/textarea.html.twig
- 10 core/themes/seven/templates/classy/form/textarea.html.twig
- 10 core/themes/bartik/templates/classy/form/textarea.html.twig
- 10 core/profiles/demo_umami/themes/umami/templates/classy/form/textarea.html.twig
Same filename and directory in other branches
Default theme implementation 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
1 theme call to textarea.html.twig
- Textarea::getInfo in core/
lib/ Drupal/ Core/ Render/ Element/ Textarea.php - Returns the element properties for this element.
File
core/modules/system/templates/textarea.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation 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()
- *
- * @ingroup themeable
- */
- #}
- <div{{ wrapper_attributes }}>
- <textarea{{ attributes }}>{{ value }}</textarea>
- </div>