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