You are here

public static function OrderSubscriber::getSubscribedEvents in Drupal Commerce Connector for AvaTax 8

File

src/EventSubscriber/OrderSubscriber.php, line 46

Class

OrderSubscriber

Namespace

Drupal\commerce_avatax\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events = [
    'commerce_order.place.post_transition' => [
      'commitTransaction',
    ],
    'commerce_order.cancel.pre_transition' => [
      'onOrderCancel',
    ],
    OrderEvents::ORDER_DELETE => [
      'onOrderDelete',
    ],
  ];
  return $events;
}