$hasSiblings->indexOf()
Returns the position / index in the collection
$hasSiblings->indexOf(Collection|null $collection = null): int|false
Parameters
| Name | Type | Default |
|---|---|---|
| $collection | Kirby\Cms\Collectionornull |
null
|
Return types
intorfalse
Parent class
Kirby\Cms\HasSiblings