$lazyCollection->append()
Appends an element to the data array
$lazyCollection->append(string|mixed ...$args): LazyCollection
Parameters
| Name | Type | Default |
|---|---|---|
| ...$args | stringormixed |
no default value |
Return type
This method modifies the existing $lazycollection object it is applied to and returns it again.
Parent class
Kirby\Cms\LazyCollection
inherited from Kirby\Cms\Collection
Examples
$collection->append($object);
$collection->append('key', $object);