$hasSiblings->indexOf()
Returns the position / index in the collection
$hasSiblings->indexOf(Kirby\Toolkit\Collection|null $collection = null): int|false
Parameters
| Name | Type | Default |
|---|---|---|
| $collection | Kirby\Toolkit\Collectionornull |
null
|
Return types
intorfalse
This method modifies the existing $hassiblings object it is applied to and returns it again.
Parent class
Kirby\Cms\HasSiblings