src/apis/CommonController.php
public function actionSaveFilemanagerFolderState()
    {
        $folderId = Yii::$app->request->getBodyParam('folderId');
        
        if ($folderId) {
            return Yii::$app->adminuser->identity->setting->set('filemanagerFolderId', $folderId);
        } else {
            return Yii::$app->adminuser->identity->setting->remove('filemanagerFolderId');
        }
    }
public function actionSaveFilemanagerFolderState()
    {
        $folderId = Yii::$app->request->getBodyParam('folderId');
        
        if ($folderId) {
            return Yii::$app->adminuser->identity->setting->set('filemanagerFolderId', $folderId);
        } else {
            return Yii::$app->adminuser->identity->setting->remove('filemanagerFolderId');
        }
    }
public function actionSaveFilemanagerFolderState ( ) { $ folderId = Yii :: $ app -> request -> getBodyParam ( 'folderId' ) ; if ( $ folderId ) { return Yii :: $ app -> adminuser -> identity -> setting -> set ( 'filemanagerFolderId' , $ folderId ) ; } else { return Yii :: $ app -> adminuser -> identity -> setting -> remove ( 'filemanagerFolderId' ) ; } }
Save the last selected filemanager folder in the user settings.

@return boolean
Save the last selected filemanager folder in the user settings .