textarea.html.twig
Same filename in this branch
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
template_preprocess_textarea()
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.twig
View 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>
Related topics
- Theme system overview
- Functions and templates for the user interface that themes can override.