class OrderStatusUpdateEvent in Ubercart 8.4
Event that is fired when an order's status is changed.
Hierarchy
- class \Drupal\uc_order\Event\OrderStatusUpdateEvent extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of OrderStatusUpdateEvent
File
- uc_order/
src/ Event/ OrderStatusUpdateEvent.php, line 11
Namespace
Drupal\uc_order\EventView source
class OrderStatusUpdateEvent extends Event {
const EVENT_NAME = 'uc_order_status_update';
/**
* The original order.
*
* @var \Drupal\uc_order\OrderInterface
*/
public $original_order;
/**
* The new order.
*
* @var \Drupal\uc_order\OrderInterface
*/
public $order;
/**
* Constructs the object.
*
* @param \Drupal\uc_order\OrderInterface $original_order
* The original order object.
* @param \Drupal\uc_order\OrderInterface $order
* The new order object.
*/
public function __construct(OrderInterface $original_order, OrderInterface $order) {
$this->original_order = $original_order;
$this->order = $order;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
OrderStatusUpdateEvent:: |
public | property | The new order. | |
OrderStatusUpdateEvent:: |
public | property | The original order. | |
OrderStatusUpdateEvent:: |
constant | |||
OrderStatusUpdateEvent:: |
public | function | Constructs the object. |