function Section::open
Creates or re-opens a child section.
Parameters
string|null $id null to create a new section, the identifier to re-open an existing one.:
Return value
Section A child section
File
-
webprofiler/
src/ Stopwatch.php, line 195
Class
- Section
- @internal This class is for internal usage only
Namespace
Drupal\webprofilerCode
public function open($id) {
if (NULL === ($session = $this->get($id))) {
$session = $this->children[] = new self(microtime(TRUE) * 1000);
}
return $session;
}