Skip to content

Kirby 4.5.0

$collection->add()

Adds a single object or an entire second collection to the current collection

$collection->add(mixed $object)

Parameters

Name Type Default
$object * mixed

Parent class

Kirby\Cms\Collection