Skip to content

Kirby 5.1.2

$assets->remove()

Removes an object

$assets->remove(string|Kirby\Plugin\Asset $key): Kirby\Plugin\Assets

Parameters

Name Type Default Description
$keyrequired stringorKirby\Plugin\Asset no default value the name of the key

Return type

Kirby\Plugin\Assets

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