Skip to content

Kirby 4.5.0

$fields->extend()

Adds all elements to the collection

$fields->extend(mixed $items): Kirby\Form\Fields

Parameters

Name Type Default
$items * mixed

Return type

Kirby\Form\Fields

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

Parent class

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