widgets/Comment.php
protected function getCommentDataProvider($commentClass)
    {
        $dataProvider = new ArrayDataProvider($this->dataProviderConfig);
        if (!isset($this->dataProviderConfig['allModels'])) {
            $dataProvider->allModels = $commentClass::getTree($this->entity, $this->entityId, $this->maxLevel);
        }

        return $dataProvider;
    }
protected function getCommentDataProvider($commentClass)
    {
        $dataProvider = new ArrayDataProvider($this->dataProviderConfig);
        if (!isset($this->dataProviderConfig['allModels'])) {
            $dataProvider->allModels = $commentClass::getTree($this->entity, $this->entityId, $this->maxLevel);
        }

        return $dataProvider;
    }
protected function getCommentDataProvider ( $ commentClass ) { $ dataProvider = new ArrayDataProvider ( $ this -> dataProviderConfig ) ; if ( ! isset ( $ this -> dataProviderConfig [ 'allModels' ] ) ) { $ dataProvider -> allModels = $ commentClass :: getTree ( $ this -> entity , $ this -> entityId , $ this -> maxLevel ) ; } return $ dataProvider ; }
Get comment ArrayDataProvider

@param CommentModel $commentClass

@return ArrayDataProvider
Get comment ArrayDataProvider