public function AddToWishlistLink::__construct in Commerce Add To Cart Link 2.x
Same name and namespace in other branches
- 8 modules/wishlist/src/AddToWishlistLink.php \Drupal\commerce_add_to_wishlist_link\AddToWishlistLink::__construct()
Constructs a new AddToWishlistLink object.
Parameters
\Drupal\commerce_product\Entity\ProductVariationInterface $variation: The product variation.
File
- modules/
wishlist/ src/ AddToWishlistLink.php, line 27
Class
- AddToWishlistLink
- Defines a helper class for constructing add to wishlist links.
Namespace
Drupal\commerce_add_to_wishlist_linkCode
public function __construct(ProductVariationInterface $variation) {
$this->variation = $variation;
}