You are here

public function OrderStatusUpdateEvent::__construct in Ubercart 8.4

Constructs the object.

Parameters

\Drupal\uc_order\OrderInterface $original_order: The original order object.

\Drupal\uc_order\OrderInterface $order: The new order object.

File

uc_order/src/Event/OrderStatusUpdateEvent.php, line 37

Class

OrderStatusUpdateEvent
Event that is fired when an order's status is changed.

Namespace

Drupal\uc_order\Event

Code

public function __construct(OrderInterface $original_order, OrderInterface $order) {
  $this->original_order = $original_order;
  $this->order = $order;
}