Shipment/EventListener/AbstractShipmentListener.php
public function onPreCreate(ResourceEventInterface $event)
    {
        $shipment = $this->getShipmentFromEvent($event);

        $this->preLoadSale($shipment->getSale());
    }
public function onPreCreate(ResourceEventInterface $event)
    {
        $shipment = $this->getShipmentFromEvent($event);

        $this->preLoadSale($shipment->getSale());
    }
public function onPreCreate ( ResourceEventInterface $ event ) { $ shipment = $ this -> getShipmentFromEvent ( $ event ) ; $ this -> preLoadSale ( $ shipment -> getSale ( ) ) ; }
Pre create event handler.

@param ResourceEventInterface $event
Pre create event handler .