Skip to content

Kirby 5.0.4

$collection->clone()

Returns a cloned instance of the collection

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

Return type

Kirby\Toolkit\Collection

This method does not modify the existing $collection object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Toolkit\Collection