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

Breadcrumb

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

function Profiler::loadProfileFromResponse

Loads the Profile for the given Response.

File

vendor/symfony/http-kernel/Profiler/Profiler.php, line 68

Class

Profiler
Profiler.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

public function loadProfileFromResponse(Response $response) : ?Profile {
    if (!($token = $response->headers
        ->get('X-Debug-Token'))) {
        return null;
    }
    return $this->loadProfile($token);
}

API Navigation

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