public 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

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Debug/Stopwatch.php, line 162

Class

Section

Namespace

Symfony\Component\HttpKernel\Debug

Code

public function open($id) {
  if (null === ($session = $this
    ->get($id))) {
    $session = $this->children[] = new self(microtime(true) * 1000);
  }
  return $session;
}