diff --git a/core/modules/language/language.admin.inc b/core/modules/language/language.admin.inc index 3baf045..ce79a25 100644 --- a/core/modules/language/language.admin.inc +++ b/core/modules/language/language.admin.inc @@ -7,6 +7,7 @@ use Drupal\Component\Utility\String; use Drupal\Core\Render\Element; +use Drupal\Core\Template\Attribute; /** * Prepares variables for language negotiation configuration form. @@ -88,7 +89,7 @@ function template_preprocess_language_negotiation_configure_form(&$variables) { // 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 67ddda4..a57a8f0 100644 --- a/core/modules/language/templates/language-negotiation-configure-form.html.twig +++ b/core/modules/language/templates/language-negotiation-configure-form.html.twig @@ -20,7 +20,14 @@ */ #} {% for language_type in language_types %} -
+ {% + set wrapper_classes = [ + 'form-item', + 'table-language-group', + 'table-' ~ language_type.type ~ '-wrapper', + ] + %} +

{{ language_type.title }}

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