$lazyCollection->findByKey()
Find a single element by key (id)
$lazyCollection->findByKey(string $key): mixed|null
Parameters
| Name | Type | Default |
|---|---|---|
| $keyrequired | string |
no default value |
Return types
mixedornull
Parent class
Kirby\Cms\LazyCollection
inherited from Kirby\Toolkit\Collection