You are here

commerce-store.html.twig in Commerce Core 8.2

Default template for stores.

Available variables:

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

  {{ store|without('name') }}
  
  • store_entity: The store entity.
  • store_url: The store URL.

File

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