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 \Magento\Backend\App\Action implements HttpGetActionInterface
14 {
20  const ADMIN_RESOURCE = 'Magento_Customer::online';
21 
25  protected $resultPageFactory;
26 
31  public function __construct(
32  Context $context,
34  ) {
35  parent::__construct($context);
36  $this->resultPageFactory = $resultPageFactory;
37  }
38 
44  public function execute()
45  {
47  $resultPage = $this->resultPageFactory->create();
48  $resultPage->setActiveMenu('Magento_Customer::customer_online');
49  $resultPage->addBreadcrumb(__('Customers'), __('Customers'));
50  $resultPage->addBreadcrumb(__('Online Customers'), __('Online Customers'));
51  $resultPage->getConfig()->getTitle()->prepend(__('Customers Now Online'));
52 
53  return $resultPage;
54  }
55 }
__()
Definition: __.php:13
__construct(Context $context, PageFactory $resultPageFactory)
Definition: Index.php:31