Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / language / templates / language-negotiation-configure-form.html.twig
1 {#
2 /**
3  * @file
4  * Default theme implementation for a language negotiation configuration form.
5  *
6  * Available variables:
7  * - language_types: A list of language negotiation types. Each language type
8  *   contains the following:
9  *   - type: The machine name for the negotiation type.
10  *   - title: The language negotiation type name.
11  *   - description: A description for how the language negotiation type
12  *     operates.
13  *   - configurable: A radio element to toggle the table.
14  *   - table: A draggable table for the language detection methods of this type.
15  *   - children: Remaining form items for the group.
16  *   - attributes: A list of HTML attributes for the wrapper element.
17  * - children: Remaining form items for all groups.
18  *
19  * @see template_preprocess_language_negotiation_configure_form()
20  *
21  * @ingroup themeable
22  */
23 #}
24 {% for language_type in language_types %}
25   {%
26     set language_classes = [
27       'js-form-item',
28       'form-item',
29       'table-language-group',
30       'table-' ~ language_type.type ~ '-wrapper',
31     ]
32   %}
33   <div{{ language_type.attributes.addClass(language_classes) }}>
34     <h2>{{ language_type.title }}</h2>
35     <div class="description">{{ language_type.description }}</div>
36     {{ language_type.configurable }}
37     {{ language_type.table }}
38     {{ language_type.children }}
39   </div>
40 {% endfor %}
41 {{ children }}