You are here

commerce-shipment.html.twig in Commerce Shipping 8.2

Default template for shipments.

Available variables:

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

  {{ shipment|without('title') }}
  
  • shipment_entity: The shipment entity.

File

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