You are here

protected function Twig_Profiler_Dumper_Html::formatNonTemplate in Translation template extractor 7.3

Overrides Twig_Profiler_Dumper_Text::formatNonTemplate

File

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