protected function HtmlDumper::formatNonTemplate in Devel 8.3
Same name and namespace in other branches
- 8 webprofiler/src/Twig/Dumper/HtmlDumper.php \Drupal\webprofiler\Twig\Dumper\HtmlDumper::formatNonTemplate()
- 8.2 webprofiler/src/Twig/Dumper/HtmlDumper.php \Drupal\webprofiler\Twig\Dumper\HtmlDumper::formatNonTemplate()
- 4.x webprofiler/src/Twig/Dumper/HtmlDumper.php \Drupal\webprofiler\Twig\Dumper\HtmlDumper::formatNonTemplate()
File
- webprofiler/
src/ Twig/ Dumper/ HtmlDumper.php, line 34
Class
- HtmlDumper
- Class HtmlDumper.
Namespace
Drupal\webprofiler\Twig\DumperCode
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());
}