$versions->append()
Appends an element to the data array
$versions->append(string|Kirby\Content\Version ...$args): Kirby\Content\Versions
Parameters
| Name | Type | Default |
|---|---|---|
| ...$args | stringorKirby\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
Examples
$collection->append($object);
$collection->append('key', $object);