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