Symfony\Bundle\WebProfilerBundle\Controller\ProfilerController::getTemplateName PHP Method

getTemplateName() protected method

protected getTemplateName ( $profiler, $panel )
    protected function getTemplateName($profiler, $panel)
    {
        $templates = $this->getTemplateNames($profiler);

        if (!isset($templates[$panel])) {
            throw new NotFoundHttpException(sprintf('Panel "%s" is not registered.', $panel));
        }

        return $templates[$panel];
    }