Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Details.php
Go to the documentation of this file.
1 <?php
7 
12 {
16  private $resultPageFactory;
17 
21  private $accessValidator;
22 
26  private $menuId;
27 
35  public function __construct(
36  \Magento\Backend\App\Action\Context $context,
37  \Magento\Framework\View\Result\PageFactory $resultPageFactory,
38  \Magento\AsynchronousOperations\Model\AccessValidator $accessValidator,
39  $menuId = 'Magento_AsynchronousOperations::system_magento_logging_bulk_operations'
40  ) {
41  $this->resultPageFactory = $resultPageFactory;
42  $this->accessValidator = $accessValidator;
43  $this->menuId = $menuId;
44  parent::__construct($context);
45  }
46 
50  protected function _isAllowed()
51  {
52  return $this->_authorization->isAllowed('Magento_Logging::system_magento_logging_bulk_operations')
53  && $this->accessValidator->isAllowed($this->getRequest()->getParam('uuid'));
54  }
55 
61  public function execute()
62  {
63  $bulkId = $this->getRequest()->getParam('uuid');
64  $resultPage = $this->resultPageFactory->create();
65  $resultPage->initLayout();
66  $this->_setActiveMenu($this->menuId);
67  $resultPage->getConfig()->getTitle()->prepend(__('Action Details - #' . $bulkId));
68 
69  return $resultPage;
70  }
71 }
__()
Definition: __.php:13
__construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\View\Result\PageFactory $resultPageFactory, \Magento\AsynchronousOperations\Model\AccessValidator $accessValidator, $menuId='Magento_AsynchronousOperations::system_magento_logging_bulk_operations')
Definition: Details.php:35