function DatabaseProfilerStorage::read
File
-
webprofiler/
src/ Profiler/ DatabaseProfilerStorage.php, line 83
Class
- DatabaseProfilerStorage
- Implements a profiler storage using the DBTNG query api.
Namespace
Drupal\webprofiler\ProfilerCode
public function read($token) {
$record = $this->database
->select('webprofiler', 'w')
->fields('w')
->condition('token', $token)
->execute()
->fetch();
if (isset($record->data)) {
return $this->createProfileFromData($token, $record);
}
}