Ublaboo\DataGrid\DataGrid::findDefaultPerPage PHP Method

findDefaultPerPage() public method

User may set default "items per page" value, apply it
public findDefaultPerPage ( ) : void
return void
    public function findDefaultPerPage()
    {
        if (!empty($this->per_page)) {
            return;
        }
        if (!empty($this->default_per_page)) {
            $this->per_page = $this->default_per_page;
        }
        $this->saveSessionData('_grid_per_page', $this->per_page);
    }
DataGrid