public function getName(Profile $profile, $panel)
    {
        $templates = $this->getNames($profile);

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

        return $templates[$panel];
    }
public function getName(Profile $profile, $panel)
    {
        $templates = $this->getNames($profile);

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

        return $templates[$panel];
    }
public function getName ( Profile $ profile , $ panel ) { $ templates = $ this -> getNames ( $ profile ) ; if ( ! isset ( $ templates [ $ panel ] ) ) { throw new NotFoundHttpException ( sprintf ( 'Panel "%s" is not registered in profiler or is not present in viewed profile.' , $ panel ) ) ; } return $ templates [ $ panel ] ; }
Gets the template name for a given panel.

@param Profile $profile
@param string  $panel

@return mixed

@throws NotFoundHttpException
Gets the template name for a given panel .