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