function 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'] = [];
}