You are here

container--field--widget-commerce-product-bundle-items.html.twig in Commerce Product Bundle 8

Default wrapper template for the commerce product bundle add to cart form.

Available variables:

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

File

templates/container--field--widget-commerce-product-bundle-items.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default wrapper template for the commerce product bundle add to cart form.
  5. *
  6. * Available variables:
  7. * - attributes: HTML attributes for the containing element.
  8. * - elements: The child elements of the container.
  9. * - has_parent: A flag to indicate that the container has one or more parent containers.
  10. *
  11. * @see template_preprocess_container()
  12. *
  13. * @ingroup themeable
  14. */
  15. #}
  16. {%
  17. set classes = [
  18. has_parent ? 'js-form-wrapper',
  19. has_parent ? 'form-wrapper',
  20. ]
  21. %}
  22. <div{{ attributes.addClass(classes) }}>
  23. {{ elements }}
  24. </div>