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/promotion/src/EventSubscriber/CartEventSubscriber.php, line 14

Class

CartEventSubscriber

Namespace

Drupal\commerce_promotion\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events = [
    CartEvents::CART_EMPTY => [
      'onCartEmpty',
    ],
  ];
  return $events;
}