Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

input.html.twig

Same filename in this branch
  1. 11.1.x core/themes/starterkit_theme/templates/form/input.html.twig
  2. 11.1.x core/themes/claro/templates/form/input.html.twig
  3. 11.1.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

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/themes/stable9/templates/form/input.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override 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. #}
  13. <input{{ attributes }} />{{ children }}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal