Skip to content

Kirby 6.0.0

$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

Kirby\Content\Versions

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