Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Profile.php

function Profile::getChildByToken

File

vendor/symfony/http-kernel/Profiler/Profile.php, line 190

Class

Profile
Profile.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

public function getChildByToken(string $token) : ?self {
    foreach ($this->children as $child) {
        if ($token === $child->getToken()) {
            return $child;
        }
    }
    return null;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal