Skip to content

Kirby 3.9.8

$nestcollection->keyOf()

Tries to find the key for the given element

$nestcollection->keyOf(mixed $needle): string|int|false

Parameters

Name Type Default Description
$needle * mixed the element to search for

Return type

string|int|false

Parent class

Kirby\Cms\NestCollection inherited from Kirby\Toolkit\Iterator