Skip to content

Kirby 6.0.0

$layout->indexOf()

Returns the position / index in the collection

$layout->indexOf(Layouts|null $collection = null): int|false

Parameters

Name Type Default
$collection Kirby\Cms\Layoutsornull null

Return types

intorfalse

Parent class

Kirby\Cms\Layout inherited from Kirby\Cms\Item