field-group-html-element.html.twig 776 B

123456789101112131415161718192021222324252627282930
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a fieldgroup html element.
  5. *
  6. * Available variables:
  7. * - title: Title of the group.
  8. * - title_element: Element to wrap the title.
  9. * - children: The children of the group.
  10. * - wrapper_element: The html element to use
  11. * - attributes: A list of HTML attributes for the group wrapper.
  12. *
  13. * @see template_preprocess_field_group_html_element()
  14. *
  15. * @ingroup themeable
  16. */
  17. #}
  18. <{{ wrapper_element }} {{ attributes }}>
  19. {% if title %}
  20. <{{ title_element }}{% if collapsible %} class="field-group-toggler"{% endif %}>{{ title }}</{{ title_element }}>
  21. {% endif %}
  22. {% if collapsible %}
  23. <div class="field-group-wrapper">
  24. {% endif %}
  25. {{children}}
  26. {% if collapsible %}
  27. </div>
  28. {% endif %}
  29. </{{ wrapper_element }}>