Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-wishlist
Block
Cart
Item
Renderer
Actions
MoveToWishlist.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Wishlist\Block\Cart\Item\Renderer\Actions
;
7
8
use
Magento\Checkout\Block\Cart\Item\Renderer\Actions\Generic
;
9
use
Magento\Framework\View\Element\Template
;
10
use
Magento\Wishlist\Helper\Data
;
11
16
class
MoveToWishlist
extends
Generic
17
{
21
protected
$wishlistHelper
;
22
28
public
function
__construct
(
29
Template
\
Context
$context,
30
Data
$wishlistHelper
,
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
}
Magento\Wishlist\Block\Cart\Item\Renderer\Actions\MoveToWishlist\$wishlistHelper
$wishlistHelper
Definition:
MoveToWishlist.php:21
Magento\Framework\View\Element\Template
Definition:
Context.php:6
Magento\Wishlist\Block\Cart\Item\Renderer\Actions\MoveToWishlist\getMoveFromCartParams
getMoveFromCartParams()
Definition:
MoveToWishlist.php:52
Magento\Wishlist\Block\Cart\Item\Renderer\Actions
Definition:
MoveToWishlist.php:6
Magento\Framework\View\Element\Template\Context
Definition:
Context.php:23
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Wishlist\Block\Cart\Item\Renderer\Actions\MoveToWishlist\__construct
__construct(Template\Context $context, Data $wishlistHelper, array $data=[])
Definition:
MoveToWishlist.php:28
Magento\Wishlist\Block\Cart\Item\Renderer\Actions\MoveToWishlist\isAllowInCart
isAllowInCart()
Definition:
MoveToWishlist.php:42
Magento\Checkout\Block\Cart\Item\Renderer\Actions\Generic
Definition:
Generic.php:11
Magento\Framework\View\Element\Template
Definition:
Template.php:32
Magento\Wishlist\Helper\Data
Definition:
Data.php:20
Magento\Wishlist\Block\Cart\Item\Renderer\Actions\MoveToWishlist
Definition:
MoveToWishlist.php:16
Magento\Checkout\Block\Cart\Item\Renderer\Actions\Generic\getItem
getItem()
Definition:
Generic.php:24