public function Profiler::import

Imports data into the profiler storage.

Parameters

string $data A data string as exported by the export() method:

Return value

Profile A Profile instance

File

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

Class

Profiler
Profiler.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

public function import($data) {
  $profile = unserialize(base64_decode($data));
  if ($this->storage
    ->read($profile
    ->getToken())) {
    return false;
  }
  $this
    ->saveProfile($profile);
  return $profile;
}