You are here

commerce-stock-location.html.twig in Commerce Stock 8

commerce_stock_location.html.twig Default template for stock locations.

Available variables:

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

  {{ commerce_stock_location|without('title') }}
  
  • commerce_stock_location_entity: The commerce_stock_location entity.
  • url: The stock location URL.

File

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