You are here

public static function OrderPlacedEventSubscriber::getSubscribedEvents in Commerce Reporting 8

File

src/EventSubscriber/OrderPlacedEventSubscriber.php, line 84

Class

OrderPlacedEventSubscriber
Event subscriber to order placed transition event.

Namespace

Drupal\commerce_reports\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events = [
    'commerce_order.place.pre_transition' => 'flagOrder',
    KernelEvents::TERMINATE => 'generateReports',
  ];
  return $events;
}