27 \
Magento\
Tax\Api\TaxClassRepositoryInterface $taxClassService,
42 $section = $this->
getRequest()->getParam(
'section');
45 $path =
'tax/notification/ignore_' . $section;
47 ->saveConfig(
$path, 1, ScopeConfigInterface::SCOPE_TYPE_DEFAULT, 0);
48 }
catch (\Exception $e) {
49 $this->messageManager->addError($e->getMessage());
54 $this->_cacheTypeList->cleanType(
'config');
55 $this->_eventManager->dispatch(
'adminhtml_cache_refresh_type', [
'type' =>
'config']);
59 return $resultRedirect->setRefererUrl();
$taxClassDataObjectFactory
__construct(\Magento\Backend\App\Action\Context $context, \Magento\Tax\Api\TaxClassRepositoryInterface $taxClassService, \Magento\Tax\Api\Data\TaxClassInterfaceFactory $taxClassDataObjectFactory, \Magento\Framework\App\Cache\TypeListInterface $cacheTypeList)