$pages->keyOf()
Tries to find the key for the given element
$pages->keyOf(mixed $needle): string|bool
Parameters
Name | Type | Default | Description |
---|---|---|---|
$needle |
mixed |
– | the element to search for |
Return type
string
|bool
Inherited from
Kirby\Toolkit\Iterator