Same filename in this branch
  1. 10 core/modules/system/templates/textarea.html.twig
  2. 10 core/themes/claro/templates/form/textarea.html.twig
  3. 10 core/themes/stable9/templates/form/textarea.html.twig
  4. 10 core/themes/starterkit_theme/templates/form/textarea.html.twig
  5. 10 core/profiles/demo_umami/themes/umami/templates/classy/form/textarea.html.twig
Same filename and directory in other branches
  1. 8.9.x core/modules/system/templates/textarea.html.twig
  2. 9 core/modules/system/templates/textarea.html.twig

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
  1. {#
  2. /**
  3. * @file
  4. * Default 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. * @see template_preprocess_textarea()
  14. *
  15. * @ingroup themeable
  16. */
  17. #}
  18. <div{{ wrapper_attributes }}>
  19. <textarea{{ attributes }}>{{ value }}</textarea>
  20. </div>

Related topics