You are here

public static function ShipmentSubscriber::getSubscribedEvents in Commerce Shipping 8.2

File

src/EventSubscriber/ShipmentSubscriber.php, line 52

Class

ShipmentSubscriber

Namespace

Drupal\commerce_shipping\EventSubscriber

Code

public static function getSubscribedEvents() {
  return [
    'commerce_shipment.ship.post_transition' => [
      'onShip',
    ],
    ShippingEvents::SHIPMENT_DELETE => [
      'onShipmentDelete',
    ],
  ];
}