/** * Renders the login form. * * @param \core_auth\output\login $form The renderable. * @return string */ public function render_login(\core_auth\output\login $form) { $context = $form->export_for_template($this); // Override because rendering is not supported in template yet. $context->cookieshelpiconformatted = $this->help_icon('cookiesenabled'); $context->errorformatted = $this->error_text($context->error); return $this->render_from_template('core/login', $context); }
/** * Renders the login form. * * @param \core_auth\output\login $form The renderable. * @return string */ public function render_login(\core_auth\output\login $form) { global $SITE; $context = $form->export_for_template($this); // Override because rendering is not supported in template yet. $context->cookieshelpiconformatted = $this->help_icon('cookiesenabled'); $context->errorformatted = $this->error_text($context->error); $url = $this->get_logo_url(); if ($url) { $url = $url->out(false); } $context->logourl = $url; $context->sitename = format_string($SITE->fullname, true, array('context' => context_course::instance(SITEID))); return $this->render_from_template('core/login', $context); }