Skip to content

Kirby 4.2.0

$fields->clone()

Returns a cloned instance of the collection

$fields->clone(): Kirby\Form\Fields

Return type

Kirby\Form\Fields

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

Parent class

Kirby\Form\Fields inherited from Kirby\Toolkit\Collection