frontend\modules\user\controllers\DefaultController::comment PHP Méthode

comment() protected méthode

protected comment ( $userId )
    protected function comment($userId)
    {
        return new ActiveDataProvider(['query' => PostComment::find()->where(['user_id' => $userId, 'status' => 1])->orderBy(['created_at' => SORT_DESC])]);
    }