You are here

public function Stopwatch::isStarted in Devel 8.2

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

Checks if the event was started

Parameters

string $name The event name:

Return value

bool

File

webprofiler/src/Stopwatch.php, line 97

Class

Stopwatch
Class Stopwatch

Namespace

Drupal\webprofiler

Code

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