23 protected $_template =
'Magento_Tax::toolbar/rate/add.phtml';
49 parent::__construct($context,
$data);
55 public function addButton($buttonId,
$data, $level = 0, $sortOrder = 0, $region =
'toolbar')
57 $this->buttonList->add($buttonId,
$data, $level, $sortOrder, $region);
66 $this->buttonList->remove($buttonId);
75 $this->buttonList->add(
78 'label' =>
__(
'Add New Tax Rate'),
79 'onclick' =>
'window.location.href=\'' . $this->
getUrl(
'tax/rate/add') .
'\'',
80 'class' =>
'add primary add-tax-rate' 84 $this->toolbar->pushButtons($this, $this->buttonList);
85 return parent::_prepareLayout();
93 $this->buttonList->update($buttonId, $key,
$data);
102 return !
$item->isDeleted();
getUrl($route='', $params=[])