You are here

commerce-product-bundle-i.html.twig in Commerce Product Bundle 8

Default template for product bundle items.

Available variables:

  • attributes: HTML attributes for the wrapper.
  • product_bundle item: The rendered product bundle item fields. Use 'product_bundle_item' to print them all, or print a subset such as 'product_bundle_item.title'. Use the following code to exclude the printing of a given field:

  {{ product_bundle_item|without('title') }}
  
  • product_bundle_item_entity: The product bundle item entity.

File

templates/commerce-product-bundle-i.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. *
  5. * Default template for product bundle items.
  6. *
  7. * Available variables:
  8. * - attributes: HTML attributes for the wrapper.
  9. * - product_bundle item: The rendered product bundle item fields.
  10. * Use 'product_bundle_item' to print them all, or print a subset such as
  11. * 'product_bundle_item.title'. Use the following code to exclude the
  12. * printing of a given field:
  13. * @code
  14. * {{ product_bundle_item|without('title') }}
  15. * @endcode
  16. * - product_bundle_item_entity: The product bundle item entity.
  17. *
  18. * @ingroup themeable
  19. */
  20. #}
  21. <div{{ attributes }}>
  22. {{- product_bundle_item -}}
  23. </div>