$listItems->findByKey()
Find a single element by key (id)
$listItems->findByKey(string $key): TValue|null
Parameters
| Name | Type | Default |
|---|---|---|
$key |
string |
- |
Return type
TValue or null
Parent class
Wagnerwagner\Merx\ListItems inherited from Kirby\Toolkit\Collection