You are here

field-group-html-element.html.twig in Field Group 8.3

Same filename and directory in other branches
  1. 8 templates/field-group-html-element.html.twig

Default theme implementation for a fieldgroup html element.

Available variables:

  • title: Title of the group.
  • title_element: Element to wrap the title.
  • children: The children of the group.
  • wrapper_element: The html element to use
  • attributes: A list of HTML attributes for the group wrapper.

File

templates/field-group-html-element.html.twig
View source
  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 }}{{ title_attributes }}>{{ 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 }}>