bs_base-8.x-1.x-dev/templates/form/input.html.twig
templates/form/input.html.twig
{#
/**
* @file
* Theme override for an 'input' #type form element.
*
* Available variables:
* - attributes: A list of HTML attributes for the input element.
* - children: Optional additional rendered elements.
*
* @see template_preprocess_input()
*/
#}
{% do element['#errors'] ? attributes.addClass('is-invalid') %}
{% block input %}
<input{{ attributes.addClass('form-control') }} />{{ children }}
{% endblock %}
