Skip to content

Kirby 6.0.1

$fieldset->indexOf()

Returns the position / index in the collection

$fieldset->indexOf(Fieldsets|null $collection = null): int|false

Parameters

Name Type Default
$collection Kirby\Cms\Fieldsetsornull null

Return types

intorfalse

Parent class

Kirby\Cms\Fieldset inherited from Kirby\Cms\Item