public static function loginList()
    {
        /** @var \dektrium\user\Module $module */
        $module = \Yii::$app->getModule('user');

        $userModel = $module->modelMap['User'];

        return ArrayHelper::map($userModel::find()->where(['blocked_at' => null])->all(), 'username', function ($user) {
            return sprintf('%s (%s)', Html::encode($user->username), Html::encode($user->email));
        });
    }
public static function loginList()
    {
        /** @var \dektrium\user\Module $module */
        $module = \Yii::$app->getModule('user');

        $userModel = $module->modelMap['User'];

        return ArrayHelper::map($userModel::find()->where(['blocked_at' => null])->all(), 'username', function ($user) {
            return sprintf('%s (%s)', Html::encode($user->username), Html::encode($user->email));
        });
    }
public static function loginList ( ) { /** @var \dektrium\user\Module $module */ $ module = \ Yii :: $ app -> getModule ( 'user' ) ; $ userModel = $ module -> modelMap [ 'User' ] ; return ArrayHelper :: map ( $ userModel :: find ( ) -> where ( [ 'blocked_at' => null ] ) -> all ( ) , 'username' , function ( $ user ) { return sprintf ( '%s (%s)' , Html :: encode ( $ user -> username ) , Html :: encode ( $ user -> email ) ) ; } ) ; }
Gets all users to generate the dropdown list when in debug mode.

@return array
Gets all users to generate the dropdown list when in debug mode .