public function AssetCollectionInterface::add

Adds an asset to the current collection.

Parameters

AssetInterface $asset An asset:

1 method overrides AssetCollectionInterface::add()
AssetCollection::add in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetCollection.php
Adds an asset to the current collection.

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetCollectionInterface.php, line 33

Class

AssetCollectionInterface
An asset collection.

Namespace

Assetic\Asset

Code

public function add(AssetInterface $asset);