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
Controller
Index
Share.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Wishlist\Controller\Index
;
7
8
use
Magento\Framework\App\Action
;
9
use
Magento\Framework\Controller\ResultFactory
;
10
11
class
Share
extends
\Magento\Wishlist\Controller\AbstractIndex
12
{
16
protected
$customerSession
;
17
22
public
function
__construct
(
23
\
Magento
\Framework\
App
\
Action
\
Context
$context,
24
\
Magento
\Customer\Model\
Session
$customerSession
25
) {
26
$this->customerSession =
$customerSession
;
27
parent::__construct($context);
28
}
29
35
public
function
execute
()
36
{
37
if
($this->customerSession->authenticate()) {
39
$resultPage = $this->resultFactory->create(
ResultFactory::TYPE_PAGE
);
40
return
$resultPage;
41
}
42
}
43
}
Magento\Framework\App
Magento\Wishlist\Controller\Index\Share\$customerSession
$customerSession
Definition:
Share.php:16
Magento\Framework\Controller\ResultFactory
Definition:
ResultFactory.php:17
Magento\Framework\App\ActionInterface\execute
execute()
Magento\Customer\Model\Session
Definition:
Session.php:22
Magento\Wishlist\Controller\Index\Share\__construct
__construct(\Magento\Framework\App\Action\Context $context, \Magento\Customer\Model\Session $customerSession)
Definition:
Share.php:22
Magento\Wishlist\Controller\Index\Share
Definition:
Share.php:11
Magento
Magento\Framework\Controller\ResultFactory\TYPE_PAGE
const TYPE_PAGE
Definition:
ResultFactory.php:27
Magento\Framework\App\Action\Context
Definition:
Context.php:24
Magento\Wishlist\Controller\Index
Definition:
Add.php:6
Magento\Wishlist\Controller\AbstractIndex
Definition:
AbstractIndex.php:15
Magento\Framework\App\Action\Action
Definition:
Action.php:25
Magento\Framework\App\Action
Definition:
AbstractAction.php:8