public static function OrderSubscriber::getSubscribedEvents in Drupal Commerce Connector for AvaTax 8
File
- src/
EventSubscriber/ OrderSubscriber.php, line 46
Class
Namespace
Drupal\commerce_avatax\EventSubscriberCode
public static function getSubscribedEvents() {
$events = [
'commerce_order.place.post_transition' => [
'commitTransaction',
],
'commerce_order.cancel.pre_transition' => [
'onOrderCancel',
],
OrderEvents::ORDER_DELETE => [
'onOrderDelete',
],
];
return $events;
}