commerce-add-to-cart-link.html.twig in Commerce Add To Cart Link 8
Same filename and directory in other branches
Default template for add to cart link.
Available variables:
- attributes: HTML attributes for the wrapper.
- url: The URL to the add to cart route.
- product_variation: The product variation entity.
1 theme call to commerce-add-to-cart-link.html.twig
- AddToCartLink::build in src/AddToCartLink.php 
- Generate a render array for an add-to-cart link.
File
templates/commerce-add-to-cart-link.html.twigView source
- {#
- /**
-  * @file
-  *
-  * Default template for add to cart link.
-  *
-  * Available variables:
-  * - attributes: HTML attributes for the wrapper.
-  * - url: The URL to the add to cart route.
-  * - product_variation: The product variation entity.
-  *
-  * @ingroup themeable
-  */
- #}
- <div{{ attributes }}>
-   <a href="{{ url }}" class="add-to-cart-link" rel="nofollow" data-variation="{{ product_variation.id }}">{{ 'Add to cart'|t }}</a>
- </div>
