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.
1 theme call to commerce-wishlist-block.html.twig
- WishlistBlock::build in src/
Plugin/ Block/ WishlistBlock.php - Builds the wishlist block.
File
templates/commerce-wishlist-block.html.twigView source
- {#
- /**
- * @file
- * 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.
- *
- * @ingroup themeable
- */
- #}
- <div{{ attributes.addClass('wishlist-block') }}>
- <a class="wishlist-block__link" href="{{ url }}">
- <span class="wishlist-block__count">{{ count_text }}</span>
- </a>
- </div>