$fieldsets->keyOf()
Tries to find the key for the given element
$fieldsets->keyOf(mixed $needle): string|false
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $needle * | mixed |
– | the element to search for |
Return type
string|false
Parent class
Kirby\Cms\Fieldsets inherited from Kirby\Toolkit\Iterator