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