You are here

public function ProfilerExtension::leave in Devel 8.3

Same name and namespace in other branches
  1. 8 webprofiler/src/Twig/Extension/ProfilerExtension.php \Drupal\webprofiler\Twig\Extension\ProfilerExtension::leave()
  2. 8.2 webprofiler/src/Twig/Extension/ProfilerExtension.php \Drupal\webprofiler\Twig\Extension\ProfilerExtension::leave()
  3. 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\Extension

Code

public function leave(\Twig_Profiler_Profile $profile) {
  parent::leave($profile);
  if ($this->stopwatch && $profile
    ->isTemplate()) {
    $this->events[$profile]
      ->stop();
    unset($this->events[$profile]);
  }
}