You are here

public static function OrderPaidSubscriber::getSubscribedEvents in Commerce Core 8.2

Same name in this branch
  1. 8.2 modules/payment/src/EventSubscriber/OrderPaidSubscriber.php \Drupal\commerce_payment\EventSubscriber\OrderPaidSubscriber::getSubscribedEvents()
  2. 8.2 modules/order/tests/modules/commerce_order_test/src/EventSubscriber/OrderPaidSubscriber.php \Drupal\commerce_order_test\EventSubscriber\OrderPaidSubscriber::getSubscribedEvents()

File

modules/payment/src/EventSubscriber/OrderPaidSubscriber.php, line 14

Class

OrderPaidSubscriber

Namespace

Drupal\commerce_payment\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events = [
    'commerce_order.order.paid' => 'onPaid',
  ];
  return $events;
}