public function Profiler::loadProfileFromResponse

Loads the Profile for the given Response.

Parameters

Response $response A Response instance:

Return value

Profile A Profile instance

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/Profiler.php, line 61

Class

Profiler
Profiler.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

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