You are here

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\Event
View 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

Namesort descending Modifiers Type Description Overrides
ShipmentSaveEvent::$order public property The order.
ShipmentSaveEvent::$shipment public property The shipment.
ShipmentSaveEvent::EVENT_NAME constant
ShipmentSaveEvent::__construct public function Constructs the object.