You are here

public function Stopwatch::isStarted in Devel 8.3

Same name and namespace in other branches
  1. 8 webprofiler/src/Stopwatch.php \Drupal\webprofiler\Stopwatch::isStarted()
  2. 8.2 webprofiler/src/Stopwatch.php \Drupal\webprofiler\Stopwatch::isStarted()
  3. 4.x webprofiler/src/Stopwatch.php \Drupal\webprofiler\Stopwatch::isStarted()

Checks if the named event was started.

Parameters

string $name: The event name.

Return value

bool True if the event was started.

File

webprofiler/src/Stopwatch.php, line 108

Class

Stopwatch
Class Stopwatch.

Namespace

Drupal\webprofiler

Code

public function isStarted($name) {
  return end($this->activeSections)
    ->isEventStarted($name);
}