diff --git a/core/modules/language/language.admin.inc b/core/modules/language/language.admin.inc index ce79a25..7fdaf1a 100644 --- a/core/modules/language/language.admin.inc +++ b/core/modules/language/language.admin.inc @@ -85,11 +85,11 @@ function template_preprocess_language_negotiation_configure_form(&$variables) { 'configurable' => $configurable, 'table' => $table, 'children' => $form[$type], + 'attributes' => new Attribute, ); // Prevent the type from rendering with the remaining form child elements. unset($form[$type]); } - $variables['wrapper_attributes'] = new Attribute(); $variables['children'] = $form; } diff --git a/core/modules/language/templates/language-negotiation-configure-form.html.twig b/core/modules/language/templates/language-negotiation-configure-form.html.twig index e90350e..8e1c8f5 100644 --- a/core/modules/language/templates/language-negotiation-configure-form.html.twig +++ b/core/modules/language/templates/language-negotiation-configure-form.html.twig @@ -12,8 +12,8 @@ * - configurable: A radio element to toggle the table. * - table: A draggable table for the language detection methods of this type. * - children: Remaining form items for the group. +* - attributes: A list of HTML attributes for the wrapper element. * - children: Remaining form items for all groups. -* - wrapper_attributes: A list of HTML attributes for the wrapper element. * * @see template_preprocess_language_negotiation_configure_form() * @@ -22,13 +22,13 @@ #} {% for language_type in language_types %} {% - set wrapper_classes = [ + set language_classes = [ 'form-item', 'table-language-group', 'table-' ~ language_type.type ~ '-wrapper', ] %} - +

{{ language_type.title }}

{{ language_type.description }}
{{ language_type.configurable }}