You are here

protected function HtmlDumper::formatNonTemplate 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::formatNonTemplate()
  2. 8 webprofiler/src/Twig/Dumper/HtmlDumper.php \Drupal\webprofiler\Twig\Dumper\HtmlDumper::formatNonTemplate()
  3. 8.2 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\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());
}