input--submit.html.twig

Same filename in other branches
  1. 9 core/modules/views/tests/themes/views_test_theme/templates/input--submit.html.twig
  2. 11.x core/modules/views/tests/themes/views_test_theme/templates/input--submit.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()

File

core/modules/views/tests/themes/views_test_theme/templates/input--submit.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. <button{{ attributes }}>attributes.value</button>{{ children }}

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