notificationManagement = $notificationManagement; } /** * @inheritDoc */ protected function _isAllowed() { return $this->_authorization->isAllowed('Magento_Logging::system_magento_logging_bulk_operations'); } /** * {@inheritdoc} */ public function execute() { $bulkUuids = []; foreach ((array)$this->getRequest()->getParam('uuid', []) as $bulkUuid) { $bulkUuids[] = (string)$bulkUuid; } $isAcknowledged = $this->notificationManagement->acknowledgeBulks($bulkUuids); /** @var \Magento\Framework\Controller\Result\Json $result */ $result = $this->resultFactory->create(ResultFactory::TYPE_JSON); if (!$isAcknowledged) { $result->setHttpResponseCode(400); } return $result; } }