class ShipmentSaveEvent in Ubercart 8.4
Event that is fired when a shipment is saved.
Hierarchy
- class \Drupal\uc_fulfillment\Event\ShipmentSaveEvent extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of ShipmentSaveEvent
1 file declares its use of ShipmentSaveEvent
- Shipment.php in shipping/
uc_fulfillment/ src/ Shipment.php
File
- shipping/
uc_fulfillment/ src/ Event/ ShipmentSaveEvent.php, line 12
Namespace
Drupal\uc_fulfillment\EventView source
class ShipmentSaveEvent extends Event {
const EVENT_NAME = 'uc_fulfillment_shipment_save';
/**
* The order.
*
* @var \Drupal\uc_order\OrderInterface
*/
public $order;
/**
* The shipment.
*
* @var \Drupal\uc_fulfillment\ShipmentInterface
*/
public $shipment;
/**
* Constructs the object.
*
* @param \Drupal\uc_order\OrderInterface $order
* The order object.
* @param \Drupal\uc_fulfillment\ShipmentInterface $shipment
* The shipment.
*/
public function __construct(OrderInterface $order, ShipmentInterface $shipment) {
$this->order = $order;
$this->shipment = $shipment;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ShipmentSaveEvent:: |
public | property | The order. | |
ShipmentSaveEvent:: |
public | property | The shipment. | |
ShipmentSaveEvent:: |
constant | |||
ShipmentSaveEvent:: |
public | function | Constructs the object. |