input.html.twig
Same filename in this branch
Same filename in other branches
- 9 core/themes/stable9/templates/form/input.html.twig
- 9 core/themes/claro/templates/form/input.html.twig
- 9 core/themes/stable/templates/form/input.html.twig
- 9 core/themes/starterkit_theme/templates/form/input.html.twig
- 9 core/themes/classy/templates/form/input.html.twig
- 9 core/modules/system/templates/input.html.twig
- 8.9.x core/themes/claro/templates/form/input.html.twig
- 8.9.x core/themes/stable/templates/form/input.html.twig
- 8.9.x core/themes/classy/templates/form/input.html.twig
- 8.9.x core/modules/system/templates/input.html.twig
- 11.x core/themes/stable9/templates/form/input.html.twig
- 11.x core/themes/claro/templates/form/input.html.twig
- 11.x core/themes/starterkit_theme/templates/form/input.html.twig
- 11.x core/modules/system/templates/input.html.twig
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
17 theme calls to input.html.twig
- Checkbox::getInfo in core/
lib/ Drupal/ Core/ Render/ Element/ Checkbox.php - Color::getInfo in core/
lib/ Drupal/ Core/ Render/ Element/ Color.php - Date::getInfo in core/
lib/ Drupal/ Core/ Render/ Element/ Date.php - Email::getInfo in core/
lib/ Drupal/ Core/ Render/ Element/ Email.php - File::getInfo in core/
lib/ Drupal/ Core/ Render/ Element/ File.php
File
-
core/
themes/ claro/ templates/ form/ input.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 claro_preprocess_input()
- */
- #}
- {% apply spaceless %}
- {% if autocomplete_message %}
- <div class="claro-autocomplete">
- <input{{ attributes }}/>
- <div class="claro-autocomplete__message hidden" data-drupal-selector="autocomplete-message">{{ autocomplete_message }}</div>
- </div>
- {{ children }}
- {% else %}
- <input{{ attributes }}/>{{ children }}
- {% endif %}
- {% endapply %}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.