protected function FileProfilerStorage::createProfileFromData in Devel 8
Same name and namespace in other branches
- 8.3 webprofiler/src/Profiler/FileProfilerStorage.php \Drupal\webprofiler\Profiler\FileProfilerStorage::createProfileFromData()
 - 8.2 webprofiler/src/Profiler/FileProfilerStorage.php \Drupal\webprofiler\Profiler\FileProfilerStorage::createProfileFromData()
 - 4.x webprofiler/src/Profiler/FileProfilerStorage.php \Drupal\webprofiler\Profiler\FileProfilerStorage::createProfileFromData()
 
File
- webprofiler/
src/ Profiler/ FileProfilerStorage.php, line 13  
Class
Namespace
Drupal\webprofiler\ProfilerCode
protected function createProfileFromData($token, $data, $parent = NULL) {
  $profile = new Profile($token);
  $profile
    ->setIp($data['ip']);
  $profile
    ->setMethod($data['method']);
  $profile
    ->setUrl($data['url']);
  $profile
    ->setTime($data['time']);
  $profile
    ->setCollectors($data['data']);
  $profile
    ->setStatusCode($data['status_code']);
  return $profile;
}