Skip to content

Kirby 4.5.0

$collection->clone()

Returns a cloned instance of the collection

$collection->clone(): Kirby\Blueprint\Collection

Return type

Kirby\Blueprint\Collection

This method modifies the existing $collection object it is applied to and returns it again.

Parent class

Kirby\Blueprint\Collection inherited from Kirby\Toolkit\Collection