Block/Adminhtml/Plan/AddRow.php
protected function _construct()
    {
        $this->_objectId = 'row_id';
        $this->_blockGroup = 'CheckoutCom_Magento2';
        $this->_controller = 'adminhtml_plan';
        parent::_construct();
        if ($this->_isAllowedAction('CheckoutCom_Magento2::add_row')) {
            $this->buttonList->update('save', 'label', __('Save'));
        } else {
            $this->buttonList->remove('save');
        }
        $this->buttonList->remove('reset');
    }
protected function _construct()
    {
        $this->_objectId = 'row_id';
        $this->_blockGroup = 'CheckoutCom_Magento2';
        $this->_controller = 'adminhtml_plan';
        parent::_construct();
        if ($this->_isAllowedAction('CheckoutCom_Magento2::add_row')) {
            $this->buttonList->update('save', 'label', __('Save'));
        } else {
            $this->buttonList->remove('save');
        }
        $this->buttonList->remove('reset');
    }
protected function _construct ( ) { $ this -> _objectId = 'row_id' ; $ this -> _blockGroup = 'CheckoutCom_Magento2' ; $ this -> _controller = 'adminhtml_plan' ; parent :: _construct ( ) ; if ( $ this -> _isAllowedAction ( 'CheckoutCom_Magento2::add_row' ) ) { $ this -> buttonList -> update ( 'save' , 'label' , __ ( 'Save' ) ) ; } else { $ this -> buttonList -> remove ( 'save' ) ; } $ this -> buttonList -> remove ( 'reset' ) ; }
Initialize Imagegallery Images Edit Block.
Initialize Imagegallery Images Edit Block .