public function AssetsDataCollector::addJsAsset in Devel 8.2
Same name and namespace in other branches
- 8.3 webprofiler/src/DataCollector/AssetsDataCollector.php \Drupal\webprofiler\DataCollector\AssetsDataCollector::addJsAsset()
- 8 webprofiler/src/DataCollector/AssetsDataCollector.php \Drupal\webprofiler\DataCollector\AssetsDataCollector::addJsAsset()
- 4.x 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\DataCollectorCode
public function addJsAsset($jsAsset) {
$this->data['js'] = NestedArray::mergeDeepArray([
$jsAsset,
$this->data['js'],
]);
}