You are here

protected function HtmlDumper::formatNonTemplate in Devel 8

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