diff --git a/core/modules/datetime/datetime.module b/core/modules/datetime/datetime.module index 3f8ce42..4d7a2e0 100644 --- a/core/modules/datetime/datetime.module +++ b/core/modules/datetime/datetime.module @@ -341,7 +341,7 @@ function template_preprocess_datetime_form(&$variables) { } /** - * Prepares variables date selection form templates. + * Prepares variables for date selection form templates. * * Default template: datelist-form.html.twig. * diff --git a/core/modules/datetime/templates/datetime-wrapper.html.twig b/core/modules/datetime/templates/datetime-wrapper.html.twig index a105a50..46658a6 100644 --- a/core/modules/datetime/templates/datetime-wrapper.html.twig +++ b/core/modules/datetime/templates/datetime-wrapper.html.twig @@ -4,12 +4,10 @@ * Default theme implementation for datetime form wrapper. * * Available variables: - * - content: The form element to be output, usually a - * datelist, or datetime. + * - content: The form element to be output, usually a datelist, or datetime. * - title: The title of the form element. * - attributes: Remaining HTML attributes for the form wrapper. - * - required: A renderable required marker if the form element is required, - * otherwise an empty array. + * - required: A required marker indicating that the form element is required. * * @see template_preprocess() * @see template_preprocess_datetime_wrapper() @@ -17,9 +15,10 @@ * @ingroup themeable */ #} +{% set required_rendered %}{{ required }}{% endset %} {% if title %}