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