$assets->remove()
Removes an object
$assets->remove(string|Kirby\Plugin\Asset $key): Kirby\Plugin\Assets
Parameters
Name | Type | Default | Description |
---|---|---|---|
$keyrequired | string orKirby\Plugin\Asset |
no default value | the name of the key |
Return type
This method does not modify the existing $assets
object but returns a new object with the changes applied. Learn more →
Parent class
Kirby\Plugin\Assets
inherited from Kirby\Cms\Collection