You are here

protected function HtmlDumper::formatTemplate in Devel 8

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Twig/Dumper/HtmlDumper.php \Drupal\webprofiler\Twig\Dumper\HtmlDumper::formatTemplate()
  2. 8.2 webprofiler/src/Twig/Dumper/HtmlDumper.php \Drupal\webprofiler\Twig\Dumper\HtmlDumper::formatTemplate()
  3. 4.x webprofiler/src/Twig/Dumper/HtmlDumper.php \Drupal\webprofiler\Twig\Dumper\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());
}