$tabs->keyOf()
Tries to find the key for the given element
$tabs->keyOf(Tab $needle): int|string|false
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $needlerequired | Kirby\Blueprint\Tab |
no default value | the element to search for |
Return types
intorstringorfalse
the name of the key or false
Parent class
Kirby\Blueprint\Tabs
inherited from Kirby\Toolkit\Iterator