Skip to content

Kirby 6.0.1

$fields->findBy()

Find a single element by an attribute and its value

$fields->findBy(string $attribute, mixed $value): Field|null

Parameters

Name Type Default
$attributerequired string no default value
$valuerequired mixed no default value

Return types

Kirby\Form\Fieldornull

Parent class

Kirby\Form\Fields inherited from Kirby\Cms\Collection