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