$options->indexOf()
Correct position detection for objects. The method will automatically detect objects or ids and then search accordingly.
$options->indexOf(string|Option $needle): int|false
Parameters
| Name | Type | Default |
|---|---|---|
| $needlerequired | stringorKirby\Option\Option |
no default value |
Return types
intorfalse
Parent class
Kirby\Option\Options
inherited from Kirby\Cms\Collection