public function ProfilerExtension::leave in Devel 8
Same name and namespace in other branches
- 8.3 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()
- 4.x 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]);
}
}