public function BaseMemcacheProfilerStorage::read

Reads data associated with the given token.

The method returns false if the token does not exists in the storage.

Parameters

string $token A token:

Return value

Profile The profile associated with token

Overrides ProfilerStorageInterface::read

1 call to BaseMemcacheProfilerStorage::read()
BaseMemcacheProfilerStorage::createProfileFromData in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/BaseMemcacheProfilerStorage.php

File

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

Class

BaseMemcacheProfilerStorage
Base Memcache storage for profiling information in a Memcache.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

public function read($token) {
  if (empty($token)) {
    return false;
  }
  $profile = $this
    ->getValue($this
    ->getItemName($token));
  if (false !== $profile) {
    $profile = $this
      ->createProfileFromData($token, $profile);
  }
  return $profile;
}