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.
See also
File
templates/container--field--widget-commerce-product-bundle-items.html.twigView source
- {#
- /**
- * @file
- * 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.
- *
- * @see template_preprocess_container()
- *
- * @ingroup themeable
- */
- #}
- {%
- set classes = [
- has_parent ? 'js-form-wrapper',
- has_parent ? 'form-wrapper',
- ]
- %}
- <div{{ attributes.addClass(classes) }}>
- {{ elements }}
- </div>