public function Section::get

Returns the child section.

Parameters

string $id The child section identifier:

Return value

Section|null The child section or null when none found

1 call to Section::get()
Section::open in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Debug/Stopwatch.php
Creates or re-opens a child section.

File

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

Class

Section

Namespace

Symfony\Component\HttpKernel\Debug

Code

public function get($id) {
  foreach ($this->children as $child) {
    if ($id === $child
      ->getId()) {
      return $child;
    }
  }
  return null;
}