You are here

constant OrderEvents::ORDER_ASSIGN in Commerce Core 8.2

Name of the event fired when assigning an order to a customer.

Fired when assigning an anonymous order to a customer (e.g. after the customer logged in / registered at the end of checkout), and when reassigning an order to a different customer in the admin UI.

Note: At this point the order still has the original data (customer, email). Use $event->getOrder()-getCustomer()->isAnonymous() to check whether the original customer was anonymous.

Fired before the order is saved.

See also

\Drupal\commerce_order\Event\OrderAssignEvent

File

modules/order/src/Event/OrderEvents.php, line 25

Class

OrderEvents

Namespace

Drupal\commerce_order\Event

Code

const ORDER_ASSIGN = 'commerce_order.order.assign';