dataPersistor = $dataPersistor; } public function execute() { /** @var \Magento\Backend\Model\View\Result\Page $resultPage */ $resultPage = $this->resultFactory->create(ResultFactory::TYPE_PAGE); $resultPage->setActiveMenu(self::ADMIN_RESOURCE) ->addBreadcrumb(__('Cookie Consent'), __('Cookie Consent')) ->addBreadcrumb(__('Consent Log'), __('Consent Log')); $resultPage->getConfig()->getTitle()->prepend(__('Cookie Consent Log')); $this->dataPersistor->clear(ConsentLogInterface::DATA_PERSISTOR_KEY); return $resultPage; } }