public static function CartEventSubscriber::getSubscribedEvents in Commerce Core 8.2
Same name in this branch
- 8.2 modules/log/src/EventSubscriber/CartEventSubscriber.php \Drupal\commerce_log\EventSubscriber\CartEventSubscriber::getSubscribedEvents()
- 8.2 modules/cart/src/EventSubscriber/CartEventSubscriber.php \Drupal\commerce_cart\EventSubscriber\CartEventSubscriber::getSubscribedEvents()
- 8.2 modules/promotion/src/EventSubscriber/CartEventSubscriber.php \Drupal\commerce_promotion\EventSubscriber\CartEventSubscriber::getSubscribedEvents()
File
- modules/
log/ src/ EventSubscriber/ CartEventSubscriber.php, line 33
Class
Namespace
Drupal\commerce_log\EventSubscriberCode
public static function getSubscribedEvents() {
$events = [
CartEvents::CART_ENTITY_ADD => [
'onCartEntityAdd',
-100,
],
CartEvents::CART_ORDER_ITEM_REMOVE => [
'onCartOrderItemRemove',
-100,
],
];
return $events;
}