cart.add:before
Runs before an item is added to the cart. The item is still whatever the caller passed.
'wagnerwagner.merx.cart.add:before' => function (Wagnerwagner\Merx\Cart $cart, Wagnerwagner\Merx\ListItem|array|string $data): void {}
Parameters
Return type
void