Skip to content

Kirby 4.4.1

$roles->indexOf()

Correct position detection for objects.

$roles->indexOf(string|object $needle): int|false

Parameters

Name Type Default
$needle * string|object

Return type

int|false

Parent class

Kirby\Cms\Roles inherited from Kirby\Cms\Collection