27 $this->messageManager->addSuccess(
__(
'You saved the tax rule.'));
30 return $resultRedirect->setPath(
'tax/*/edit', [
'rule' =>
$taxRule->getId()]);
32 return $resultRedirect->setPath(
'tax/*/');
33 }
catch (\
Magento\Framework\Exception\LocalizedException $e) {
34 $this->messageManager->addError($e->getMessage());
35 }
catch (\Exception $e) {
36 $this->messageManager->addError(
__(
'We can\'t save this tax rule right now.'));
39 $this->_objectManager->get(\
Magento\Backend\Model\Session::class)->setRuleData(
$postData);
40 return $resultRedirect->setUrl($this->
_redirect->getRedirectUrl($this->getUrl(
'*')));
42 return $resultRedirect->setPath(
'tax/rule');
_redirect($path, $arguments=[])
populateTaxRule($postData)