function HtmlDumper::formatTemplate

File

webprofiler/src/Twig/Dumper/HtmlDumper.php, line 24

Class

HtmlDumper
Class HtmlDumper

Namespace

Drupal\webprofiler\Twig\Dumper

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