frontend\modules\user\controllers\DefaultController::userMeta PHP Method

userMeta() protected method

protected userMeta ( $userId, $type, string $targetType = 'topic' ) : ActiveDataProvider
$userId
$type
$targetType string
return yii\data\ActiveDataProvider
    protected function userMeta($userId, $type, $targetType = 'topic')
    {
        return new ActiveDataProvider(['query' => UserMeta::find()->where(['user_id' => $userId, 'type' => $type, 'target_type' => $targetType])->orderBy(['created_at' => SORT_DESC])]);
    }