src/apis/UserController.php
public function actionSession()
    {
        $user = Yii::$app->adminuser->identity;
        $session = [
            'packages' => [],
            'user' => $user->toArray(['title', 'firstname', 'lastname', 'email', 'id', 'email_verification_token_timestamp']),
            'activities' => ['open_email_validation' => $this->hasOpenEmailValidation($user)],
            'settings' => Yii::$app->adminuser->identity->setting->getArray([
                User::USER_SETTING_ISDEVELOPER, User::USER_SETTING_UILANGUAGE, User::USER_SETTING_NEWUSEREMAIL
            ], [
                User::USER_SETTING_UILANGUAGE => $this->module->interfaceLanguage,
            ]),
        ];
        
        // if developer option is enabled provide package infos
        if ($session['settings'][User::USER_SETTING_ISDEVELOPER]) {
            $session['packages'] = Yii::$app->getPackageInstaller()->getConfigs();
        }
        
        return $session;
    }
public function actionSession()
    {
        $user = Yii::$app->adminuser->identity;
        $session = [
            'packages' => [],
            'user' => $user->toArray(['title', 'firstname', 'lastname', 'email', 'id', 'email_verification_token_timestamp']),
            'activities' => ['open_email_validation' => $this->hasOpenEmailValidation($user)],
            'settings' => Yii::$app->adminuser->identity->setting->getArray([
                User::USER_SETTING_ISDEVELOPER, User::USER_SETTING_UILANGUAGE, User::USER_SETTING_NEWUSEREMAIL
            ], [
                User::USER_SETTING_UILANGUAGE => $this->module->interfaceLanguage,
            ]),
        ];
        
        // if developer option is enabled provide package infos
        if ($session['settings'][User::USER_SETTING_ISDEVELOPER]) {
            $session['packages'] = Yii::$app->getPackageInstaller()->getConfigs();
        }
        
        return $session;
    }
public function actionSession ( ) { $ user = Yii :: $ app -> adminuser -> identity ; $ session = [ 'packages' => [ ] , 'user' => $ user -> toArray ( [ 'title' , 'firstname' , 'lastname' , 'email' , 'id' , 'email_verification_token_timestamp' ] ) , 'activities' => [ 'open_email_validation' => $ this -> hasOpenEmailValidation ( $ user ) ] , 'settings' => Yii :: $ app -> adminuser -> identity -> setting -> getArray ( [ User :: USER_SETTING_ISDEVELOPER , User :: USER_SETTING_UILANGUAGE , User :: USER_SETTING_NEWUSEREMAIL ] , [ User :: USER_SETTING_UILANGUAGE => $ this -> module -> interfaceLanguage , ] ) , ] ; // if developer option is enabled provide package infos if ( $ session [ 'settings' ] [ User :: USER_SETTING_ISDEVELOPER ] ) { $ session [ 'packages' ] = Yii :: $ app -> getPackageInstaller ( ) -> getConfigs ( ) ; } return $ session ; }
Dump the current data from your user session.

@return array
Dump the current data from your user session .