You are here

public static function OrderNumberSubscriber::getSubscribedEvents in Commerce Core 8.2

File

modules/order/src/EventSubscriber/OrderNumberSubscriber.php, line 40

Class

OrderNumberSubscriber
Generates the order number for placed orders.

Namespace

Drupal\commerce_order\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events = [
    'commerce_order.place.pre_transition' => [
      'setOrderNumber',
      -30,
    ],
  ];
  return $events;
}