$versions->remove()
Removes an object
$versions->remove(string|Version $key): Versions
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $keyrequired | stringorKirby\Content\Version |
no default value | Key or object to remove |
Return type
This method modifies the existing $versions object it is applied to and returns it again.
Parent class
Kirby\Content\Versions
inherited from Kirby\Cms\Collection