Skip to content

Kirby 3.7.5

$nestcollection->findBy()

Find a single element by an attribute and its value

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

Parameters

Name Type Default
$attribute * string
$value * mixed

Return type

mixed|null

Parent class

Kirby\Cms\NestCollection inherited from Kirby\Toolkit\Collection