resultPageFactory = $resultPageFactory; $this->accessValidator = $accessValidator; $this->menuId = $menuId; parent::__construct($context); } /** * @inheritDoc */ protected function _isAllowed() { return $this->_authorization->isAllowed('Magento_Logging::system_magento_logging_bulk_operations') && $this->accessValidator->isAllowed($this->getRequest()->getParam('uuid')); } /** * Bulk details action * * @return \Magento\Framework\View\Result\Page */ public function execute() { $bulkId = $this->getRequest()->getParam('uuid'); $resultPage = $this->resultPageFactory->create(); $resultPage->initLayout(); $this->_setActiveMenu($this->menuId); $resultPage->getConfig()->getTitle()->prepend(__('Action Details - #' . $bulkId)); return $resultPage; } }