public function Section::isEventStarted in Devel 8.3
Same name and namespace in other branches
- 8 webprofiler/src/Stopwatch.php \Drupal\webprofiler\Section::isEventStarted()
- 8.2 webprofiler/src/Stopwatch.php \Drupal\webprofiler\Section::isEventStarted()
- 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\webprofilerCode
public function isEventStarted($name) {
return isset($this->events[$name]) && $this->events[$name]
->isStarted();
}