function public function CdnAssets::prependAssets

8.x-3.x CdnAssets.php public CdnAssets::prependAssets(array $assets)

Prepends an array of CdnAsset objects to the list.

Parameters

\Drupal\bootstrap\Plugin\Provider\CdnAsset[] $assets: An array of CdnAsset objects.

Class

CdnAssets
Class CdnAssets.

Namespace

Drupal\bootstrap\Plugin\Provider

Source src/Plugin/Provider/CdnAssets.php (line 264)

public function prependAssets(array $assets) {
  foreach (array_reverse($assets) as $asset) {
    $this->prepend($asset);
  }
}