_coreRegistry = $registry; parent::__construct($context, $data); } /** * Init class * * @return void */ protected function _construct() { $this->_objectId = 'rule'; $this->_controller = 'adminhtml_rule'; $this->_blockGroup = 'Magento_Tax'; parent::_construct(); $this->buttonList->update('save', 'label', __('Save Rule')); $this->buttonList->update('delete', 'label', __('Delete Rule')); $this->buttonList->add( 'save_and_continue', [ 'label' => __('Save and Continue Edit'), 'class' => 'save', 'data_attribute' => [ 'mage-init' => ['button' => ['event' => 'saveAndContinueEdit', 'target' => '#edit_form']], ] ], 10 ); } }