public function AssetCollectionInterface::removeLeaf

Removes a leaf.

Parameters

AssetInterface $needle The leaf to remove:

Throws

\InvalidArgumentException If the asset cannot be found

1 method overrides AssetCollectionInterface::removeLeaf()
AssetCollection::removeLeaf in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetCollection.php
Removes a leaf.

File

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

Class

AssetCollectionInterface
An asset collection.

Namespace

Assetic\Asset

Code

public function removeLeaf(AssetInterface $leaf);