Skip to content

Kirby 4.5.0

$pages->clone()

Returns a cloned instance of the collection

$pages->clone(): Kirby\Cms\Pages

Return type

Kirby\Cms\Pages

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

Parent class

Kirby\Cms\Pages inherited from Kirby\Toolkit\Collection