$file->indexOf()
Returns the position / index in the collection
$file->indexOf(Kirby\Cms\Files|null $collection = null): int|falseParameters
| Name | Type | Default | 
|---|---|---|
| $collection | Kirby\Cms\Filesornull | null | 
Return types
intorfalse
This method modifies the existing $file object it is applied to and returns it again.