Skip to content

Kirby 4.5.0

$layouts->indexOf()

Correct position detection for objects.

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

Parameters

Name Type Default
$needle * string|object

Return type

int|false

Parent class

Kirby\Cms\Layouts inherited from Kirby\Cms\Collection