$files->indexOf()
Correct position detection for objects.
$files->indexOf(string|object $needle): int
Parameters
Name | Type | Default |
---|---|---|
$needle * | string |object |
– |
Return type
int
Parent class
Kirby\Cms\Files
inherited from Kirby\Cms\Collection