You are here

commerce-wishlist-block.html.twig in Commerce Wishlist 8.3

Template for the wishlist block.

Available variables:

  • count: The number of items in the wishlist.
  • count_text: The text representing the number of items in the wishlist.
  • wishlist_entity: The wishlist entity.
  • url: The url to the wishlist page.

File

templates/commerce-wishlist-block.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Template for the wishlist block.
  5. *
  6. * Available variables:
  7. * - count: The number of items in the wishlist.
  8. * - count_text: The text representing the number of items in the wishlist.
  9. * - wishlist_entity: The wishlist entity.
  10. * - url: The url to the wishlist page.
  11. *
  12. * @ingroup themeable
  13. */
  14. #}
  15. <div{{ attributes.addClass('wishlist-block') }}>
  16. <a class="wishlist-block__link" href="{{ url }}">
  17. <span class="wishlist-block__count">{{ count_text }}</span>
  18. </a>
  19. </div>