You are here

public function AssetsDataCollector::addCssAsset in Devel 4.x

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

Parameters

$cssAsset:

File

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

Class

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

Namespace

Drupal\webprofiler\DataCollector

Code

public function addCssAsset($cssAsset) {
  $this->data['css'] = NestedArray::mergeDeepArray([
    $cssAsset,
    $this->data['css'],
  ]);
}