public function ProfilerExtension::leave in Devel 4.x
Same name and namespace in other branches
- 8.3 webprofiler/src/Twig/Extension/ProfilerExtension.php \Drupal\webprofiler\Twig\Extension\ProfilerExtension::leave()
- 8 webprofiler/src/Twig/Extension/ProfilerExtension.php \Drupal\webprofiler\Twig\Extension\ProfilerExtension::leave()
- 8.2 webprofiler/src/Twig/Extension/ProfilerExtension.php \Drupal\webprofiler\Twig\Extension\ProfilerExtension::leave()
File
- webprofiler/
src/ Twig/ Extension/ ProfilerExtension.php, line 49
Class
- ProfilerExtension
- Class ProfilerExtension.
Namespace
Drupal\webprofiler\Twig\ExtensionCode
public function leave(\Twig_Profiler_Profile $profile) {
parent::leave($profile);
if ($this->stopwatch && $profile
->isTemplate()) {
$this->events[$profile]
->stop();
unset($this->events[$profile]);
}
}