public function JsCollectionRendererWrapper::render in Devel 8
Same name and namespace in other branches
- 8.3 webprofiler/src/Asset/JsCollectionRendererWrapper.php \Drupal\webprofiler\Asset\JsCollectionRendererWrapper::render()
- 8.2 webprofiler/src/Asset/JsCollectionRendererWrapper.php \Drupal\webprofiler\Asset\JsCollectionRendererWrapper::render()
- 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\AssetCode
public function render(array $js_assets) {
$this->dataCollector
->addJsAsset($js_assets);
return $this->assetCollectionRenderer
->render($js_assets);
}