You are here

public function CacheDataCollector::__construct in Devel 8.2

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

File

webprofiler/src/DataCollector/CacheDataCollector.php, line 30

Class

CacheDataCollector
Collects the used cache bins and cache CIDs.

Namespace

Drupal\webprofiler\DataCollector

Code

public function __construct() {
  $this->data['total'][CacheDataCollector::WEBPROFILER_CACHE_HIT] = 0;
  $this->data['total'][CacheDataCollector::WEBPROFILER_CACHE_MISS] = 0;
  $this->data['cache'] = [];
}