Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Index.php
Go to the documentation of this file.
1 <?php
7 
10 
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 }
_redirect($path, $arguments=[])
Definition: Action.php:167
__()
Definition: __.php:13
$block
Definition: block.php:8