$versions->add()
Adds a single object or an entire second collection to the current collection
$versions->add(Kirby\Cms\Collection|array|Kirby\Content\Version $object): Kirby\Content\Versions
Parameters
| Name | Type | Default |
|---|---|---|
| $objectrequired | Kirby\Cms\Collection<TValue>orarray<TValue>orKirby\Content\Version |
no default value |
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