input.html.twig

Same filename in this branch
  1. 9 core/themes/stable9/templates/form/input.html.twig
  2. 9 core/themes/claro/templates/form/input.html.twig
  3. 9 core/themes/stable/templates/form/input.html.twig
  4. 9 core/themes/starterkit_theme/templates/form/input.html.twig
  5. 9 core/themes/classy/templates/form/input.html.twig
Same filename in other branches
  1. 8.9.x core/themes/claro/templates/form/input.html.twig
  2. 8.9.x core/themes/stable/templates/form/input.html.twig
  3. 8.9.x core/themes/classy/templates/form/input.html.twig
  4. 8.9.x core/modules/system/templates/input.html.twig
  5. 10 core/themes/stable9/templates/form/input.html.twig
  6. 10 core/themes/claro/templates/form/input.html.twig
  7. 10 core/themes/starterkit_theme/templates/form/input.html.twig
  8. 10 core/modules/system/templates/input.html.twig
  9. 11.x core/themes/stable9/templates/form/input.html.twig
  10. 11.x core/themes/claro/templates/form/input.html.twig
  11. 11.x core/themes/starterkit_theme/templates/form/input.html.twig
  12. 11.x 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()

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.

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


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.