language-negotiation-configure-form.html.twig
Same filename in this branch
Same filename in other branches
- 9 core/themes/stable9/templates/admin/language-negotiation-configure-form.html.twig
- 9 core/themes/stable/templates/admin/language-negotiation-configure-form.html.twig
- 9 core/modules/language/templates/language-negotiation-configure-form.html.twig
- 8.9.x core/themes/stable/templates/admin/language-negotiation-configure-form.html.twig
- 8.9.x core/modules/language/templates/language-negotiation-configure-form.html.twig
- 10 core/themes/stable9/templates/admin/language-negotiation-configure-form.html.twig
- 10 core/modules/language/templates/language-negotiation-configure-form.html.twig
Theme override for a language negotiation configuration form.
Available variables:
- language_types: A list of language negotiation types. Each language type
contains the following:
- type: The machine name for the negotiation type.
- title: The language negotiation type name.
- description: A description for how the language negotiation type operates.
- 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.
See also
template_preprocess_language_negotiation_configure_form()
1 theme call to language-negotiation-configure-form.html.twig
- NegotiationConfigureForm::buildForm in core/
modules/ language/ src/ Form/ NegotiationConfigureForm.php
File
-
core/
themes/ stable9/ templates/ admin/ language-negotiation-configure-form.html.twig
View source
- {#
- /**
- * @file
- * Theme override for a language negotiation configuration form.
- *
- * Available variables:
- * - language_types: A list of language negotiation types. Each language type
- * contains the following:
- * - type: The machine name for the negotiation type.
- * - title: The language negotiation type name.
- * - description: A description for how the language negotiation type
- * operates.
- * - 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.
- *
- * @see template_preprocess_language_negotiation_configure_form()
- */
- #}
- {% for language_type in language_types %}
- {%
- set language_classes = [
- 'js-form-item',
- 'form-item',
- 'table-language-group',
- 'table-' ~ language_type.type ~ '-wrapper',
- ]
- %}
- <div{{ language_type.attributes.addClass(language_classes) }}>
- <h2>{{ language_type.title }}</h2>
- <div class="description">{{ language_type.description }}</div>
- {{ language_type.configurable }}
- {{ language_type.table }}
- {{ language_type.children }}
- </div>
- {% endfor %}
- {{ children }}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.