$file->indexOf()
Returns the position / index in the collection
$file->indexOf(Kirby\Cms\Files|null $collection = null): int|false
Parameters
Name | Type | Default |
---|---|---|
$collection | Kirby\Cms\Files ornull |
null
|
Return types
int
orfalse