You are here

public function AssetsDataCollector::__construct in Devel 8.2

Same name and namespace in other branches
  1. 8.3 webprofiler/src/DataCollector/AssetsDataCollector.php \Drupal\webprofiler\DataCollector\AssetsDataCollector::__construct()
  2. 8 webprofiler/src/DataCollector/AssetsDataCollector.php \Drupal\webprofiler\DataCollector\AssetsDataCollector::__construct()
  3. 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\DataCollector

Code

public function __construct($root) {
  $this->root = $root;
  $this->data['js'] = [];
  $this->data['css'] = [];
}