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

Breadcrumb

  1. Drupal Core 11.1.x

datetime-form.html.twig

Same filename in this branch
  1. 11.1.x core/themes/olivero/templates/datetime-form.html.twig
  2. 11.1.x core/themes/stable9/templates/form/datetime-form.html.twig
  3. 11.1.x core/themes/starterkit_theme/templates/form/datetime-form.html.twig
  4. 11.1.x core/themes/claro/templates/datetime-form.html.twig
  5. 11.1.x core/modules/system/templates/datetime-form.html.twig

Theme override of a datetime form element.

Available variables:

  • attributes: HTML attributes for the datetime form element.
  • content: The datelist form element to be output.

See also

template_preprocess_datetime_form()

2 theme calls to datetime-form.html.twig
Datelist::getInfo in core/lib/Drupal/Core/Datetime/Element/Datelist.php
Returns the element properties for this element.
Datetime::getInfo in core/lib/Drupal/Core/Datetime/Element/Datetime.php
Returns the element properties for this element.

File

core/profiles/demo_umami/themes/umami/templates/classy/form/datetime-form.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override of a datetime form element.
  5. *
  6. * Available variables:
  7. * - attributes: HTML attributes for the datetime form element.
  8. * - content: The datelist form element to be output.
  9. *
  10. * @see template_preprocess_datetime_form()
  11. */
  12. #}
  13. <div{{ attributes.addClass('container-inline') }}>
  14. {{ content }}
  15. </div>

API Navigation

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