You are here

public static function XquantityStockOrderEventSubscriber::getSubscribedEvents in Commerce Extended Quantity 8

File

modules/xquantity_stock/src/EventSubscriber/XquantityStockOrderEventSubscriber.php, line 63

Class

XquantityStockOrderEventSubscriber
Commerce order event subscriber.

Namespace

Drupal\xquantity_stock\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events = [
    'commerce_order.cancel.post_transition' => [
      'onOrderCancel',
      -100,
    ],
    OrderEvents::ORDER_PREDELETE => [
      'onOrderDelete',
      -100,
    ],
    OrderEvents::ORDER_ITEM_UPDATE => [
      'onOrderItemUpdate',
      -100,
    ],
    OrderEvents::ORDER_ITEM_DELETE => [
      'onOrderItemDelete',
      -100,
    ],
  ];
  return $events;
}