private function MongoDbProfilerStorage::getData

Parameters

array $data:

Return value

array

4 calls to MongoDbProfilerStorage::getData()
MongoDbProfilerStorage::createProfileFromData in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/MongoDbProfilerStorage.php
MongoDbProfilerStorage::find in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/MongoDbProfilerStorage.php
Finds profiler tokens for the given criteria.
MongoDbProfilerStorage::read in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/MongoDbProfilerStorage.php
Reads data associated with the given token.
MongoDbProfilerStorage::readChildren in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/MongoDbProfilerStorage.php

File

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

Class

MongoDbProfilerStorage

Namespace

Symfony\Component\HttpKernel\Profiler

Code

private function getData(array $data) {
  return array(
    'token' => $data['_id'],
    'parent' => isset($data['parent']) ? $data['parent'] : null,
    'ip' => isset($data['ip']) ? $data['ip'] : null,
    'method' => isset($data['method']) ? $data['method'] : null,
    'url' => isset($data['url']) ? $data['url'] : null,
    'time' => isset($data['time']) ? $data['time'] : null,
    'data' => isset($data['data']) ? $data['data'] : null,
  );
}