Merx

$cart->findBy()

Find a single element by an attribute and its value

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

Parameters

Name Type Default
$attribute string -
$value mixed -

Return type

TValue or null

Parent class

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