Skip to content

Kirby 6.0.1

$fields->not()

Returns a Collection without the given element(s)

$fields->not(object|array|string ...$keys): Fields

Parameters

Name Type Default Description
...$keys objectorarrayorstring no default value Any number of keys, objects or collections, as individual arguments or in arrays

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\Cms\Collection