diff --git a/core/includes/form.inc b/core/includes/form.inc index 3330c7c..7222058 100644 --- a/core/includes/form.inc +++ b/core/includes/form.inc @@ -2167,7 +2167,7 @@ function form_process_autocomplete($element, &$form_state) { } /** - * Preprocesses variables for input templates. + * Prepares variables for input templates. * * Default template: input.html.twig. * @@ -2175,11 +2175,9 @@ function form_process_autocomplete($element, &$form_state) { * An associative array containing: * - element: An associative array containing the properties of the element. * Properties used: #attributes. - * */ function template_preprocess_input(&$variables) { $element = $variables['element']; - $variables['attributes'] = new Attribute($element['#attributes']); $variables['children'] = $element['#children']; } diff --git a/core/modules/system/templates/input.html.twig b/core/modules/system/templates/input.html.twig index 11110fb..9b2522c 100644 --- a/core/modules/system/templates/input.html.twig +++ b/core/modules/system/templates/input.html.twig @@ -4,7 +4,7 @@ * Default theme implementation for an 'input' #type form element. * * Available variables - * - attributes: A list of HTML attributes for the wrapper element. + * - attributes: A list of HTML attributes for the input element. * - children: The rendered input. * * @see template_preprocess_input()