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  const ADMIN_RESOURCE = 'Magento_Logging::system_magento_logging_bulk_operations';
17 
21  private $resultPageFactory;
22 
26  private $menuId;
27 
34  public function __construct(
35  \Magento\Backend\App\Action\Context $context,
36  \Magento\Framework\View\Result\PageFactory $resultPageFactory,
37  $menuId = 'Magento_AsynchronousOperations::system_magento_logging_bulk_operations'
38  ) {
39  $this->resultPageFactory = $resultPageFactory;
40  $this->menuId = $menuId;
41  parent::__construct($context);
42  }
43 
47  protected function _isAllowed()
48  {
49  return parent::_isAllowed();
50  }
51 
57  public function execute()
58  {
59  $resultPage = $this->resultPageFactory->create();
60  $resultPage->initLayout();
61  $this->_setActiveMenu($this->menuId);
62  $resultPage->getConfig()->getTitle()->prepend(__('Bulk Actions Log'));
63  return $resultPage;
64  }
65 }
__()
Definition: __.php:13
__construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\View\Result\PageFactory $resultPageFactory, $menuId='Magento_AsynchronousOperations::system_magento_logging_bulk_operations')
Definition: Index.php:34