GridHandler::loadData PHP Method

loadData() protected method

Implement this method to load data into the grid.
protected loadData ( $request, $filter ) : grid
$request Request
$filter array An associative array with filter data as returned by getFilterSelectionData(). If no filter has been selected by the user then the array will be empty.
return grid data
    protected function loadData($request, $filter)
    {
        $gridData = null;
        $dataProvider = $this->getDataProvider();
        if (is_a($dataProvider, 'GridDataProvider')) {
            // Populate the grid with data from the
            // data provider.
            $gridData = $dataProvider->loadData($filter);
        }
        $this->callFeaturesHook('loadData', array('request' => &$request, 'grid' => &$this, 'gridData' => &$gridData));
        return $gridData;
    }