Skip to content

Kirby 6.0.0

$areas->keyOf()

Tries to find the key for the given element

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

Parameters

Name Type Default Description
$needlerequired Kirby\Panel\Area no default value the element to search for

Return types

intorstringorfalse

the name of the key or false

Parent class

Kirby\Panel\Areas inherited from Kirby\Toolkit\Iterator