protected function renderLtiErrorPage(LtiException $error, $returnLink = true)
    {
        // In regard of the IMS LTI standard, we have to show a back button that refer to the
        // launch_presentation_return_url url param. So we have to retrieve this parameter before trying to start
        // te session
        $consumerLabel = $this->launchData->getToolConsumerName();
        if (!is_null($consumerLabel)) {
            $this->renderer->setData('consumerLabel', $consumerLabel);
        }

        $this->renderer->setData('message', $error->getMessage());
        $this->renderer->setTemplate(Template::getTemplate('error.tpl', 'taoLti'));

        return $this->renderer->render();
    }
protected function renderLtiErrorPage(LtiException $error, $returnLink = true)
    {
        // In regard of the IMS LTI standard, we have to show a back button that refer to the
        // launch_presentation_return_url url param. So we have to retrieve this parameter before trying to start
        // te session
        $consumerLabel = $this->launchData->getToolConsumerName();
        if (!is_null($consumerLabel)) {
            $this->renderer->setData('consumerLabel', $consumerLabel);
        }

        $this->renderer->setData('message', $error->getMessage());
        $this->renderer->setTemplate(Template::getTemplate('error.tpl', 'taoLti'));

        return $this->renderer->render();
    }
protected function renderLtiErrorPage ( LtiException $ error , $ returnLink = true ) { // In regard of the IMS LTI standard, we have to show a back button that refer to the // launch_presentation_return_url url param. So we have to retrieve this parameter before trying to start // te session $ consumerLabel = $ this -> launchData -> getToolConsumerName ( ) ; if ( ! is_null ( $ consumerLabel ) ) { $ this -> renderer -> setData ( 'consumerLabel' , $ consumerLabel ) ; } $ this -> renderer -> setData ( 'message' , $ error -> getMessage ( ) ) ; $ this -> renderer -> setTemplate ( Template :: getTemplate ( 'error.tpl' , 'taoLti' ) ) ; return $ this -> renderer -> render ( ) ; }
Render an error page.

Ignore the parameter returnLink as LTI session always
require a way for the consumer to return to his platform

@param LtiException $error
@param bool $returnLink

@return string

@throws LtiVariableMissingException
@throws \common_Exception
Render an error page .