You are here

public function Section::isEventStarted in Devel 8.3

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

Checks if an event was started.

Parameters

string $name: The event name.

Return value

bool True if the specified event was started.

File

webprofiler/src/Stopwatch.php, line 279

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();
}