You are here

protected function Twig_Profiler_Dumper_Html::formatNonTemplate in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/twig/twig/lib/Twig/Profiler/Dumper/Html.php \Twig_Profiler_Dumper_Html::formatNonTemplate()

Overrides Twig_Profiler_Dumper_Text::formatNonTemplate

File

vendor/twig/twig/lib/Twig/Profiler/Dumper/Html.php, line 34

Class

Twig_Profiler_Dumper_Html
@author Fabien Potencier <fabien@symfony.com>

Code

protected function formatNonTemplate(Twig_Profiler_Profile $profile, $prefix) {
  return sprintf('%s└ %s::%s(<span style="background-color: %s">%s</span>)', $prefix, $profile
    ->getTemplate(), $profile
    ->getType(), isset(self::$colors[$profile
    ->getType()]) ? self::$colors[$profile
    ->getType()] : 'auto', $profile
    ->getName());
}