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