You are here

public function AssetsDataCollector::addJsAsset in Devel 4.x

Same name and namespace in other branches
  1. 8.3 webprofiler/src/DataCollector/AssetsDataCollector.php \Drupal\webprofiler\DataCollector\AssetsDataCollector::addJsAsset()
  2. 8 webprofiler/src/DataCollector/AssetsDataCollector.php \Drupal\webprofiler\DataCollector\AssetsDataCollector::addJsAsset()
  3. 8.2 webprofiler/src/DataCollector/AssetsDataCollector.php \Drupal\webprofiler\DataCollector\AssetsDataCollector::addJsAsset()

Parameters

$jsAsset:

File

webprofiler/src/DataCollector/AssetsDataCollector.php, line 49

Class

AssetsDataCollector
Collects data about the used assets (CSS/JS).

Namespace

Drupal\webprofiler\DataCollector

Code

public function addJsAsset($jsAsset) {
  $this->data['js'] = NestedArray::mergeDeepArray([
    $jsAsset,
    $this->data['js'],
  ]);
}