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