You are here

unwrapped-container.html.twig in Open Social 8.9

Default theme implementation of an unwrapped container.

Used for grouped form items. Can also be used as a theme wrapper for any renderable element, for when this would create problems otherwise such as in an item_list element. See \Drupal\Core\Render\Element\RenderElement for more information on the #theme_wrappers render array property, and \Drupal\Core\Render\Element\container for usage of the container render element.

This element directly uses the Container element and removes the div by not adding it in this template.

Available variables:

  • attributes: HTML attributes for the containing element.
  • children: The rendered child elements of the container.
  • has_parent: A flag to indicate that the container has one or more parent containers.

File

modules/social_features/social_user/templates/unwrapped-container.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation of an unwrapped container.
  5. *
  6. * Used for grouped form items. Can also be used as a theme wrapper for any
  7. * renderable element, for when this would create problems otherwise such as in
  8. * an item_list element.
  9. * See \Drupal\Core\Render\Element\RenderElement for more
  10. * information on the #theme_wrappers render array property, and
  11. * \Drupal\Core\Render\Element\container for usage of the container render
  12. * element.
  13. *
  14. * This element directly uses the Container element and removes the div by not
  15. * adding it in this template.
  16. *
  17. * Available variables:
  18. * - attributes: HTML attributes for the containing element.
  19. * - children: The rendered child elements of the container.
  20. * - has_parent: A flag to indicate that the container has one or more parent
  21. containers.
  22. *
  23. * @see template_preprocess_unwrapped_container()
  24. *
  25. * @ingroup themeable
  26. */
  27. #}
  28. {{ children }}