You are here

public static function CartEventSubscriber::getSubscribedEvents in Commerce Core 8.2

Same name in this branch
  1. 8.2 modules/log/src/EventSubscriber/CartEventSubscriber.php \Drupal\commerce_log\EventSubscriber\CartEventSubscriber::getSubscribedEvents()
  2. 8.2 modules/cart/src/EventSubscriber/CartEventSubscriber.php \Drupal\commerce_cart\EventSubscriber\CartEventSubscriber::getSubscribedEvents()
  3. 8.2 modules/promotion/src/EventSubscriber/CartEventSubscriber.php \Drupal\commerce_promotion\EventSubscriber\CartEventSubscriber::getSubscribedEvents()

File

modules/log/src/EventSubscriber/CartEventSubscriber.php, line 33

Class

CartEventSubscriber

Namespace

Drupal\commerce_log\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events = [
    CartEvents::CART_ENTITY_ADD => [
      'onCartEntityAdd',
      -100,
    ],
    CartEvents::CART_ORDER_ITEM_REMOVE => [
      'onCartOrderItemRemove',
      -100,
    ],
  ];
  return $events;
}