You are here

public static function CartEventSubscriber::getSubscribedEvents in Mailchimp E-Commerce 8

File

modules/mailchimp_ecommerce_commerce/src/EventSubscriber/CartEventSubscriber.php, line 142

Class

CartEventSubscriber
Event Subscriber for Commerce Carts.

Namespace

Drupal\mailchimp_ecommerce_commerce\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[CartEvents::CART_ENTITY_ADD][] = [
    'cartAdd',
  ];
  $events[CartEvents::CART_ORDER_ITEM_UPDATE][] = [
    'cartItemUpdate',
  ];
  $events[CartEvents::CART_ORDER_ITEM_REMOVE][] = [
    'cartItemRemove',
  ];
  return $events;
}