code: public function onPreUpdate(ResourceEventInterface $event)
      {
          $shipment = $this->getShipmentFromEvent($event);
  
          $this->preLoadSale($shipment->getSale());
      }
docs: Pre update event handler.
  
  @param ResourceEventInterface $event