CrudKit\Pages\BasicDataPage::handle_get_data PHP Method

handle_get_data() public method

Get Data
public handle_get_data ( ) : array
return array
    public function handle_get_data()
    {
        $url = new UrlHelper();
        $pageNumber = $url->get('pageNumber', 1);
        $perPage = $url->get('perPage', 10);
        $filters = $url->get("filters_json", "[]");
        $params = array('skip' => ($pageNumber - 1) * $perPage, 'take' => $perPage, 'filters_json' => $filters);
        return array('type' => 'json', 'data' => array('rows' => $this->dataProvider->getData($params)));
    }