You are here

public function ShipmentSubscriber::destruct in Commerce Shipping 8.2

File

src/EventSubscriber/ShipmentSubscriber.php, line 121

Class

ShipmentSubscriber

Namespace

Drupal\commerce_shipping\EventSubscriber

Code

public function destruct() {
  if ($this->shipmentsToClear) {
    $this
      ->clearShipments();
  }
}