Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
MoveToWishlist.php
Go to the documentation of this file.
1 <?php
7 
11 
16 class MoveToWishlist extends Generic
17 {
21  protected $wishlistHelper;
22 
28  public function __construct(
29  Template\Context $context,
31  array $data = []
32  ) {
33  $this->wishlistHelper = $wishlistHelper;
34  parent::__construct($context, $data);
35  }
36 
42  public function isAllowInCart()
43  {
44  return $this->wishlistHelper->isAllowInCart();
45  }
46 
52  public function getMoveFromCartParams()
53  {
54  return $this->wishlistHelper->getMoveFromCartParams($this->getItem()->getId());
55  }
56 }
__construct(Template\Context $context, Data $wishlistHelper, array $data=[])