helpService = $helpService; } /** * get - handle get requests * * Renders the onboarding modal partial for the requested module or route. * The "show once per session" bookkeeping and sanitization live in the service. * * @param array $params Request parameters. */ public function get($params) { if (isset($params['module']) && $params['module'] != '') { $template = $this->helpService->markModalSeenForModule($params['module']); return $this->tpl->displayPartial('help.'.$template); } if (isset($params['route']) && $params['route'] != '') { $template = $this->helpService->markModalSeenForRoute($params['route']); return $this->tpl->displayPartial('help.'.$template); } } }