Skip to content

Kirby 5.0.4

$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\Optionornull

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