function HtmlDumper::formatNonTemplate

File

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

Class

HtmlDumper
Class HtmlDumper

Namespace

Drupal\webprofiler\Twig\Dumper

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