You are here

protected function Twig_Profiler_Dumper_Html::formatTemplate in Translation template extractor 7.3

Overrides Twig_Profiler_Dumper_Text::formatTemplate

File

vendor/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());
}