public function getButtonData()
    {
        $data = [];
        if ($this->getStockistId()) {
            $data = [
                'label' => __('Delete Store'),
                'class' => 'delete',
                'on_click' => 'deleteConfirm(\'' . __(
                    'Are you sure you want to do this?'
                ) . '\', \'' . $this->getDeleteUrl() . '\')',
                'sort_order' => 20,
            ];
        }
        return $data;
    }
public function getButtonData()
    {
        $data = [];
        if ($this->getStockistId()) {
            $data = [
                'label' => __('Delete Store'),
                'class' => 'delete',
                'on_click' => 'deleteConfirm(\'' . __(
                    'Are you sure you want to do this?'
                ) . '\', \'' . $this->getDeleteUrl() . '\')',
                'sort_order' => 20,
            ];
        }
        return $data;
    }
public function getButtonData ( ) { $ data = [ ] ; if ( $ this -> getStockistId ( ) ) { $ data = [ 'label' => __ ( 'Delete Store' ) , 'class' => 'delete' , 'on_click' => 'deleteConfirm(\'' . __ ( 'Are you sure you want to do this?' ) . '\', \'' . $ this -> getDeleteUrl ( ) . '\')' , 'sort_order' => 20 , ] ; } return $ data ; }
get button data

@return array
get button data