public function AssetCollectionInterface::removeLeaf

Removes a leaf.

Parameters

AssetInterface $leaf The leaf to remove:

Boolean $graceful Whether the failure should return false or throw an exception:

Return value

Boolean Whether the asset has been found

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 45

Class

AssetCollectionInterface
An asset collection.

Namespace

Assetic\Asset

Code

public function removeLeaf(AssetInterface $leaf, $graceful = false);