You are here

protected function HtmlDumper::formatTemplate in Devel 4.x

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Twig/Dumper/HtmlDumper.php \Drupal\webprofiler\Twig\Dumper\HtmlDumper::formatTemplate()
  2. 8 webprofiler/src/Twig/Dumper/HtmlDumper.php \Drupal\webprofiler\Twig\Dumper\HtmlDumper::formatTemplate()
  3. 8.2 webprofiler/src/Twig/Dumper/HtmlDumper.php \Drupal\webprofiler\Twig\Dumper\HtmlDumper::formatTemplate()

File

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

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