input.html.twig in Drupal 8
Same filename in this branch
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.
17 theme calls to input.html.twig
- Checkbox::getInfo in core/
lib/ Drupal/ Core/ Render/ Element/ Checkbox.php - Returns the element properties for this element.
- Color::getInfo in core/
lib/ Drupal/ Core/ Render/ Element/ Color.php - Returns the element properties for this element.
- Date::getInfo in core/
lib/ Drupal/ Core/ Render/ Element/ Date.php - Returns the element properties for this element.
- Email::getInfo in core/
lib/ Drupal/ Core/ Render/ Element/ Email.php - Returns the element properties for this element.
- File::getInfo in core/
lib/ Drupal/ Core/ Render/ Element/ File.php - Returns the element properties for this element.
File
core/themes/claro/templates/form/input.html.twigView 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()
- */
- #}
- {% spaceless %}
- {% if autocomplete_message %}
- <div class="claro-autocomplete">
- <input{{ attributes }}/>
- <div hidden class="claro-autocomplete__message">{{autocomplete_message}}</div>
- </div>
- {{ children }}
- {% else %}
- <input{{ attributes }}/>{{ children }}
- {% endif %}
- {% endspaceless %}