You are here

public function TimeDataCollector::getData in Devel 8.2

Same name and namespace in other branches
  1. 8.3 webprofiler/src/DataCollector/TimeDataCollector.php \Drupal\webprofiler\DataCollector\TimeDataCollector::getData()
  2. 8 webprofiler/src/DataCollector/TimeDataCollector.php \Drupal\webprofiler\DataCollector\TimeDataCollector::getData()
  3. 4.x webprofiler/src/DataCollector/TimeDataCollector.php \Drupal\webprofiler\DataCollector\TimeDataCollector::getData()

Return value

array

Overrides DrupalDataCollectorInterface::getData

File

webprofiler/src/DataCollector/TimeDataCollector.php, line 149

Class

TimeDataCollector
Class TimeDataCollector.

Namespace

Drupal\webprofiler\DataCollector

Code

public function getData() {
  $data = $this->data;
  $data['duration'] = $this
    ->getDuration();
  $data['initTime'] = $this
    ->getInitTime();
  return $data;
}