resultPageFactory = $resultPageFactory; parent::__construct($context, $coreRegistry); } /** * Index action * * @return \Magento\Framework\Controller\ResultInterface */ public function execute() { /** @var \Magento\Backend\Model\View\Result\Page $resultPage */ $resultPage = $this->resultPageFactory->create(); $this->initPage($resultPage)->getConfig()->getTitle()->prepend(__('Blocks')); $dataPersistor = $this->_objectManager->get(\Magento\Framework\App\Request\DataPersistorInterface::class); $dataPersistor->clear('cms_block'); return $resultPage; } }