protected function Twig_Profiler_Dumper_Html::formatTemplate in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/lib/Twig/Profiler/Dumper/Html.php \Twig_Profiler_Dumper_Html::formatTemplate()
Overrides Twig_Profiler_Dumper_Text::formatTemplate
File
- vendor/
twig/ twig/ lib/ Twig/ Profiler/ Dumper/ Html.php, line 29
Class
- Twig_Profiler_Dumper_Html
- @author Fabien Potencier <fabien@symfony.com>
Code
protected function formatTemplate(Twig_Profiler_Profile $profile, $prefix) {
return sprintf('%s└ <span style="background-color: %s">%s</span>', $prefix, self::$colors['template'], $profile
->getTemplate());
}