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