Skip to content

Kirby 6.0.0

$areas->indexOf()

Correct position detection for objects. The method will automatically detect objects or ids and then search accordingly.

$areas->indexOf(string|Area $needle): int|false

Parameters

Name Type Default
$needlerequired stringorKirby\Panel\Area no default value

Return types

intorfalse

Parent class

Kirby\Panel\Areas inherited from Kirby\Cms\Collection