Merx

$listItems->findBy()

Find a single element by an attribute and its value

$listItems->findBy(string $attribute, $value): TValue|null

Parameters

Name Type Default
$attribute string -
$value mixed -

Return type

TValue or null

Parent class

Wagnerwagner\Merx\ListItems inherited from Kirby\Toolkit\Collection