$collection->add()
Adds a single object or an entire second collection to the current collection
$collection->add(Collection|mixed $object): Collection
Parameters
| Name | Type | Default |
|---|---|---|
| $objectrequired | Kirby\Cms\Collection<mixed>ormixed |
no default value |
Return type
This method modifies the existing $collection object it is applied to and returns it again.