You are here

public function Twig_Extension_Profiler::enter in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/Extension/Profiler.php \Twig_Extension_Profiler::enter()

File

vendor/twig/twig/lib/Twig/Extension/Profiler.php, line 21

Class

Twig_Extension_Profiler

Code

public function enter(Twig_Profiler_Profile $profile) {
  $this->actives[0]
    ->addProfile($profile);
  array_unshift($this->actives, $profile);
}