OrderStatusUpdateEvent.php in Ubercart 8.4
Namespace
Drupal\uc_order\EventFile
uc_order/src/Event/OrderStatusUpdateEvent.phpView source
<?php
namespace Drupal\uc_order\Event;
use Drupal\uc_order\OrderInterface;
use Symfony\Component\EventDispatcher\Event;
/**
* Event that is fired when an order's status is changed.
*/
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;
}
}
Classes
Name | Description |
---|---|
OrderStatusUpdateEvent | Event that is fired when an order's status is changed. |