public function ShipmentEvent::__construct in Commerce Shipping 8.2
Constructs a new ShipmentEvent.
Parameters
\Drupal\commerce_shipping\Entity\ShipmentInterface $shipment: The shipment.
File
- src/
Event/ ShipmentEvent.php, line 28
Class
- ShipmentEvent
- Defines the shipment event.
Namespace
Drupal\commerce_shipping\EventCode
public function __construct(ShipmentInterface $shipment) {
$this->shipment = $shipment;
}