stateManager->setState($this->userSession->getUser(), $state); return new JSONResponse([ 'enabled' => $state ]); } }