Merx

$cart->findByKey()

Find a single element by key (id)

$cart->findByKey(string $key): TValue|null

Parameters

Name Type Default
$key string -

Return type

TValue or null

Parent class

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