input--checkbox.html.twig
Same filename and directory in other branches
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 also
template_preprocess_input()
gin_preprocess_input()
1 theme call to input--checkbox.html.twig
- Checkbox::getInfo in core/
lib/ Drupal/ Core/ Render/ Element/ Checkbox.php - Returns the element properties for this element.
File
-
core/
themes/ admin/ templates/ form/ input--checkbox.html.twig
View source
- {#
- /**
- * @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()
- * @see gin_preprocess_input()
- */
- #}
- {% if autocomplete_message %}
- <div class="gin-autocomplete">
- <input{{ attributes }}/>
- <div hidden class="gin-autocomplete__message">{{autocomplete_message}}</div>
- </div>
- {{ children }}
- {% else %}
- <input{{ attributes }}/>{{ children }}
- {% endif %}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.