You are here

public function AddToWishlistLink::__construct in Commerce Add To Cart Link 8

Same name and namespace in other branches
  1. 2.x 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_link

Code

public function __construct(ProductVariationInterface $variation) {
  $this->variation = $variation;
}