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