bs_base-8.x-1.x-dev/templates/form/textarea.html.twig
templates/form/textarea.html.twig
{% extends "input.html.twig" %}
{#
/**
* @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()
*/
#}
{% block input %}
{# Wrapper <div{{ wrapper_attributes}}> is removed because it is conflicting
with Bootstrap IFE support - it requires that form element and error
elements are on the same level so sibling CSS selector
`.form-control.is-invalid ~ .invalid-feedback` can work properly.
Also it seems that this wrapper_attributes is not used at all, the only
place where it is used is in classy textarea template. #}
<textarea{{ attributes.addClass('form-control').addClass(classes) }}>{{ value }}</textarea>
{% endblock %}
