$items->add()
Adds a single object or an entire second collection to the current collection
$items->add(Kirby\Cms\Items|Kirby\Cms\Item|array $object): Kirby\Cms\Items
Parameters
Name | Type | Default |
---|---|---|
$objectrequired | Kirby\Cms\Items orKirby\Cms\Item orarray |
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