$options->findBy()
Find a single element by an attribute and its value
$options->findBy(string $attribute, $value): Kirby\Option\Option|null
Parameters
Name | Type | Default |
---|---|---|
$attributerequired | string |
no default value |
$valuerequired | mixed |
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\Cms\Collection