public function CacheDataCollector::__construct in Devel 8.2
Same name and namespace in other branches
- 8.3 webprofiler/src/DataCollector/CacheDataCollector.php \Drupal\webprofiler\DataCollector\CacheDataCollector::__construct()
- 8 webprofiler/src/DataCollector/CacheDataCollector.php \Drupal\webprofiler\DataCollector\CacheDataCollector::__construct()
- 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\DataCollectorCode
public function __construct() {
$this->data['total'][CacheDataCollector::WEBPROFILER_CACHE_HIT] = 0;
$this->data['total'][CacheDataCollector::WEBPROFILER_CACHE_MISS] = 0;
$this->data['cache'] = [];
}