input--gin-lb.html.twig in Gin Layout Builder 1.0.x
Default theme implementation for an 'input' #type form element.
Available variables:
- attributes: A list of HTML attributes for the input element.
- children: Optional additional rendered elements.
See also
File
templates/form/input--gin-lb.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation 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()
- *
- * @ingroup themeable
- */
- #}
- {% set classes =[
- attributes.type != 'submit' and attributes.type != 'radio' ? 'form-element',
- attributes.type == 'radio' ? 'form-boolean--type-radio'
- ]
- %}
- <input{{ glb_classes(attributes.addClass(classes)) }} />{{ children }}