$arguments->keyOf()
Tries to find the key for the given element
$arguments->keyOf(Kirby\Query\Argument $needle): int|string|false
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $needlerequired | Kirby\Query\Argument |
no default value | the element to search for |
Return types
intorstringorfalse
the name of the key or false
This method modifies the existing $arguments object it is applied to and returns it again.
Parent class
Kirby\Query\Arguments
inherited from Kirby\Toolkit\Iterator