/** * The timestamp action provider informations about currenct only users and if the ui needs to be refreshed. * * @return array */ public function actionIndex() { // clear user online list UserOnline::clearList(); // return users, verify force reload. return ['useronline' => UserOnline::getList(), 'forceReload' => Yii::$app->adminuser->identity->force_reload]; }