$files->indexOf()
Correct position detection for objects. The method will automatically detect objects or ids and then search accordingly.
$files->indexOf(string|Kirby\Cms\File $needle): int|falseParameters
| Name | Type | Default | 
|---|---|---|
| $needlerequired | stringorKirby\Cms\File | no default value | 
Return types
intorfalse
This method modifies the existing $files object it is applied to and returns it again.
Parent class
	Kirby\Cms\Files
		inherited from Kirby\Cms\Collection