public function AssetsDataCollector::__construct in Devel 8.3
Same name and namespace in other branches
- 8 webprofiler/src/DataCollector/AssetsDataCollector.php \Drupal\webprofiler\DataCollector\AssetsDataCollector::__construct()
- 8.2 webprofiler/src/DataCollector/AssetsDataCollector.php \Drupal\webprofiler\DataCollector\AssetsDataCollector::__construct()
- 4.x webprofiler/src/DataCollector/AssetsDataCollector.php \Drupal\webprofiler\DataCollector\AssetsDataCollector::__construct()
Constructs a AssetDataCollector object.
Parameters
string $root: The app root.
File
- webprofiler/
src/ DataCollector/ AssetsDataCollector.php, line 32
Class
- AssetsDataCollector
- Collects data about the used assets (CSS/JS).
Namespace
Drupal\webprofiler\DataCollectorCode
public function __construct($root) {
$this->root = $root;
$this->data['js'] = [];
$this->data['css'] = [];
}