You are here

public function RequestDataCollector::collect in Devel 4.x

Same name and namespace in other branches
  1. 8.3 webprofiler/src/DataCollector/RequestDataCollector.php \Drupal\webprofiler\DataCollector\RequestDataCollector::collect()
  2. 8 webprofiler/src/DataCollector/RequestDataCollector.php \Drupal\webprofiler\DataCollector\RequestDataCollector::collect()
  3. 8.2 webprofiler/src/DataCollector/RequestDataCollector.php \Drupal\webprofiler\DataCollector\RequestDataCollector::collect()

File

webprofiler/src/DataCollector/RequestDataCollector.php, line 42

Class

RequestDataCollector
Integrate _content into the RequestDataCollector.

Namespace

Drupal\webprofiler\DataCollector

Code

public function collect(Request $request, Response $response, \Exception $exception = NULL) {
  parent::collect($request, $response, $exception);
  if ($controller = $this->controllerResolver
    ->getController($request)) {
    $this->data['controller'] = $this
      ->getMethodData($controller[0], $controller[1]);
    $this->data['access_check'] = $this->accessCheck;
  }
}