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 
9 use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
12 
13 class Index extends SubscriberAction implements HttpGetActionInterface, HttpPostActionInterface
14 {
20  public function execute()
21  {
22  if ($this->getRequest()->getParam('ajax')) {
23  $this->_forward('grid');
24  return;
25  }
26 
27  $this->_view->loadLayout();
28 
29  $this->_setActiveMenu('Magento_Newsletter::newsletter_subscriber');
30  $this->_view->getPage()->getConfig()->getTitle()->prepend(__('Newsletter Subscribers'));
31 
32  $this->_addBreadcrumb(__('Newsletter'), __('Newsletter'));
33  $this->_addBreadcrumb(__('Subscribers'), __('Subscribers'));
34 
35  $this->_view->renderLayout();
36  }
37 }
__()
Definition: __.php:13
_addBreadcrumb($label, $title, $link=null)
_forward($action, $controller=null, $module=null, array $params=null)