protected function prepareDataProvider($searchModel) { if ($this->prepareDataProvider !== null) { return call_user_func($this->prepareDataProvider, $searchModel, $this); } return $searchModel->search(Yii::$app->request->queryParams); }