Merx

$cart->filter()

Filters elements by one of the predefined filter methods, by a custom filter function or an array of filters

$cart->filter(Closure|array|string $field, ...$args): Kirby\Toolkit\Collection

Parameters

Name Type Default
$field Closure or array or string -
...$args mixed -

Return type

Kirby\Toolkit\Collection

Parent class

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