$fieldClass->indexOf()
Returns the position / index in the collection
$fieldClass->indexOf(Kirby\Form\Fields|null $collection = null): int|false
Parameters
Name | Type | Default |
---|---|---|
$collection | Kirby\Form\Fields ornull |
null
|
Return types
int
orfalse
This method modifies the existing $fieldclass
object it is applied to and returns it again.