Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. BlackfireDumper.php

function BlackfireDumper::dumpChildren

1 call to BlackfireDumper::dumpChildren()
BlackfireDumper::dump in vendor/twig/twig/src/Profiler/Dumper/BlackfireDumper.php

File

vendor/twig/twig/src/Profiler/Dumper/BlackfireDumper.php, line 43

Class

BlackfireDumper
@author Fabien Potencier <fabien@symfony.com>

Namespace

Twig\Profiler\Dumper

Code

private function dumpChildren(string $parent, Profile $profile, &$data) {
    foreach ($profile as $p) {
        if ($p->isTemplate()) {
            $name = $p->getTemplate();
        }
        else {
            $name = \sprintf('%s::%s(%s)', $p->getTemplate(), $p->getType(), $p->getName());
        }
        $this->dumpProfile(\sprintf('%s==>%s', $parent, $name), $p, $data);
        $this->dumpChildren($name, $p, $data);
    }
}
RSS feed
Powered by Drupal