You are here

public function Section::isEventStarted in Devel 8.2

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

Checks if the event was started

Parameters

string $name The event name:

Return value

bool

File

webprofiler/src/Stopwatch.php, line 246

Class

Section
@internal This class is for internal usage only

Namespace

Drupal\webprofiler

Code

public function isEventStarted($name) {
  return isset($this->events[$name]) && $this->events[$name]
    ->isStarted();
}