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