You are here

language-negotiation-configure-form.html.twig in Drupal 10

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.

File

core/themes/stable/templates/admin/language-negotiation-configure-form.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override 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. #}
  22. {% for language_type in language_types %}
  23. {%
  24. set language_classes = [
  25. 'js-form-item',
  26. 'form-item',
  27. 'table-language-group',
  28. 'table-' ~ language_type.type ~ '-wrapper',
  29. ]
  30. %}
  31. <div{{ language_type.attributes.addClass(language_classes) }}>
  32. <h2>{{ language_type.title }}</h2>
  33. <div class="description">{{ language_type.description }}</div>
  34. {{ language_type.configurable }}
  35. {{ language_type.table }}
  36. {{ language_type.children }}
  37. </div>
  38. {% endfor %}
  39. {{ children }}