You are here

public function JsCollectionRendererWrapper::render in Devel 8.2

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Asset/JsCollectionRendererWrapper.php \Drupal\webprofiler\Asset\JsCollectionRendererWrapper::render()
  2. 8 webprofiler/src/Asset/JsCollectionRendererWrapper.php \Drupal\webprofiler\Asset\JsCollectionRendererWrapper::render()
  3. 4.x webprofiler/src/Asset/JsCollectionRendererWrapper.php \Drupal\webprofiler\Asset\JsCollectionRendererWrapper::render()

Renders an asset collection.

Parameters

array $assets: An asset collection.

Return value

array A render array to render the asset collection.

Overrides AssetCollectionRendererInterface::render

File

webprofiler/src/Asset/JsCollectionRendererWrapper.php, line 35

Class

JsCollectionRendererWrapper
Class JsCollectionRendererWrapper.

Namespace

Drupal\webprofiler\Asset

Code

public function render(array $js_assets) {
  $this->dataCollector
    ->addJsAsset($js_assets);
  return $this->assetCollectionRenderer
    ->render($js_assets);
}