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-review
Controller
Customer
Index.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Review\Controller\Customer
;
7
8
use
Magento\Review\Controller\Customer
as
CustomerController
;
9
use
Magento\Framework\Controller\ResultFactory
;
10
11
class
Index
extends
CustomerController
12
{
18
public
function
execute
()
19
{
21
$resultPage = $this->resultFactory->create(ResultFactory::TYPE_PAGE);
22
if
($navigationBlock = $resultPage->getLayout()->getBlock(
'customer_account_navigation'
)) {
23
$navigationBlock->setActive(
'review/customer'
);
24
}
25
if
(
$block
= $resultPage->getLayout()->getBlock(
'review_customer_list'
)) {
26
$block
->setRefererUrl($this->
_redirect
->getRefererUrl());
27
}
28
$resultPage->getConfig()->getTitle()->set(
__
(
'My Product Reviews'
));
29
return
$resultPage;
30
}
31
}
Magento\Framework\App\Action\Action\_redirect
_redirect($path, $arguments=[])
Definition:
Action.php:167
Magento\Framework\Controller\ResultFactory
Definition:
ResultFactory.php:17
__
__()
Definition:
__.php:13
$block
$block
Definition:
block.php:8
Magento\Review\Controller\Customer
Definition:
Index.php:6
Magento\Framework\App\ActionInterface\execute
execute()
Magento\Review\Controller\Customer\Index
Definition:
Index.php:11