$options->findByKey()
Find a single element by key (id)
$options->findByKey(string $key): Kirby\Option\Option|null
Parameters
Name | Type | Default |
---|---|---|
$keyrequired | string |
no default value |
Return types
Kirby\Option\Option
ornull
This method modifies the existing $options
object it is applied to and returns it again.
Parent class
Kirby\Option\Options
inherited from Kirby\Toolkit\Collection