Same filename in this branch
  1. 10 core/modules/system/templates/input.html.twig
  2. 10 core/themes/claro/templates/form/input.html.twig
  3. 10 core/themes/stable9/templates/form/input.html.twig
  4. 10 core/themes/starterkit_theme/templates/form/input.html.twig
Same filename and directory in other branches
  1. 8.9.x core/modules/system/templates/input.html.twig
  2. 9 core/modules/system/templates/input.html.twig

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

template_preprocess_input()

16 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.

... See full list

File

core/modules/system/templates/input.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for an 'input' #type form element.
  5. *
  6. * Available variables:
  7. * - attributes: A list of HTML attributes for the input element.
  8. * - children: Optional additional rendered elements.
  9. *
  10. * @see template_preprocess_input()
  11. *
  12. * @ingroup themeable
  13. */
  14. #}
  15. <input{{ attributes }} />{{ children }}

Related topics