function Stopwatch::getSectionEvents
Gets all events for a given section.
Parameters
string $id A section identifier:
Return value
StopwatchEvent[] An array of StopwatchEvent instances
File
-
webprofiler/
src/ Stopwatch.php, line 130
Class
- Stopwatch
- Class Stopwatch
Namespace
Drupal\webprofilerCode
public function getSectionEvents($id) {
return isset($this->sections[$id]) ? $this->sections[$id]
->getEvents() : [];
}