Assetic\Asset\AssetCollectionInterface::removeLeaf
Removes a leaf.
Signature
public function removeLeaf(AssetInterface
$leaf,
[Boolean
$graceful = false] )
Parameters
$leaf
— Assetic\Asset\AssetInterface- The leaf to remove
$graceful
— object- Whether the failure should return false or throw an exception
Returns
- Boolean
- Whether the asset has been found
Errors/Exceptions
-
InvalidArgumentException
- If the asset cannot be found