yii\data\BaseDataProvider::setModels PHP Method

setModels() public method

Sets the data models in the current page.
public setModels ( array $models )
$models array the models in the current page
    public function setModels($models)
    {
        $this->_models = $models;
    }