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
8 
10 {
16  public function execute()
17  {
18  $this->_view->loadLayout();
19 
20  if ($block = $this->_view->getLayout()->getBlock('customer_newsletter')) {
21  $block->setRefererUrl($this->_redirect->getRefererUrl());
22  }
23  $this->_view->getPage()->getConfig()->getTitle()->set(__('Newsletter Subscription'));
24  $this->_view->renderLayout();
25  }
26 }
_redirect($path, $arguments=[])
Definition: Action.php:167
__()
Definition: __.php:13
$block
Definition: block.php:8