public function Stopwatch::getSectionEvents in Devel 4.x
Same name and namespace in other branches
- 8.3 webprofiler/src/Stopwatch.php \Drupal\webprofiler\Stopwatch::getSectionEvents()
- 8 webprofiler/src/Stopwatch.php \Drupal\webprofiler\Stopwatch::getSectionEvents()
- 8.2 webprofiler/src/Stopwatch.php \Drupal\webprofiler\Stopwatch::getSectionEvents()
Gets all events for a given section.
Parameters
string $id: A section identifier.
Return value
\Symfony\Component\Stopwatch\StopwatchEvent[] An array of StopwatchEvent instances
File
- webprofiler/
src/ Stopwatch.php, line 147
Class
- Stopwatch
- Class Stopwatch.
Namespace
Drupal\webprofilerCode
public function getSectionEvents($id) {
return isset($this->sections[$id]) ? $this->sections[$id]
->getEvents() : [];
}