You are here

textarea--gin-lb.html.twig in Gin Layout Builder 1.0.x

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.

File

templates/form/textarea--gin-lb.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override 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. #}
  16. <div{{ glb_classes(wrapper_attributes.addClass('form-textarea-wrapper')) }}>
  17. <textarea{{ glb_classes(attributes.addClass('form-element')) }}>{{ value }}</textarea>
  18. </div>