Skip to content

Kirby 6.0.0

$roles->findBy()

Find a single element by an attribute and its value

$roles->findBy(string $attribute, mixed $value): Role|null

Parameters

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

Return types

Kirby\Cms\Roleornull

Parent class

Kirby\Cms\Roles inherited from Kirby\Cms\Collection