CodeExplorer ErrorTemplateStruct example
$dedicatedTemplate =
$template . '-' .
$code;
if ($this->twig->
getLoader()->
exists($dedicatedTemplate . '.html.twig'
)) { $template =
$dedicatedTemplate;
} else { $template .= '-std';
} $template .= '.html.twig';
return new ErrorTemplateStruct($template,
['exception' =>
$exception]);
}}