You are here

input--time.html.twig in Time Field For Drupal 8.x / 9.x 8

Same filename and directory in other branches
  1. 2.x templates/input--time.html.twig

Theme override for a time field.

Available variables:

  • attributes: HTML attributes for the input element.

File

templates/input--time.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for a time field.
  5. *
  6. * Available variables:
  7. * - attributes: HTML attributes for the input element.
  8. */
  9. #}
  10. {%
  11. set classes = [
  12. 'time',
  13. ]
  14. %}
  15. <input{{ attributes.addClass(classes) }}/>