You are here

final class ShippingEvents in Commerce Shipping 8.2

Hierarchy

Expanded class hierarchy of ShippingEvents

6 files declare their use of ShippingEvents
FilterShippingMethodsSubscriber.php in tests/modules/commerce_shipping_test/src/EventSubscriber/FilterShippingMethodsSubscriber.php
PromotionSubscriber.php in src/EventSubscriber/PromotionSubscriber.php
ShipmentManager.php in src/ShipmentManager.php
ShipmentSubscriber.php in src/EventSubscriber/ShipmentSubscriber.php
ShippingMethodStorage.php in src/ShippingMethodStorage.php

... See full list

File

src/Event/ShippingEvents.php, line 5

Namespace

Drupal\commerce_shipping\Event
View source
final class ShippingEvents {

  /**
   * Name of the event fired when shipping methods are loaded for a shipment.
   *
   * @Event
   *
   * @see \Drupal\commerce_shipping\Event\FilterShippingMethodsEvent
   */
  const FILTER_SHIPPING_METHODS = 'commerce_shipping.filter_shipping_methods';

  /**
   * Name of the event fired after loading a shipment.
   *
   * @Event
   *
   * @see \Drupal\commerce_shipping\Event\ShipmentEvent
   */
  const SHIPMENT_LOAD = 'commerce_shipping.commerce_shipment.load';

  /**
   * Name of the event fired after creating a new shipment.
   *
   * Fired before the shipment is saved.
   *
   * @Event
   *
   * @see \Drupal\commerce_shipping\Event\ShipmentEvent
   */
  const SHIPMENT_CREATE = 'commerce_shipping.commerce_shipment.create';

  /**
   * Name of the event fired before saving a shipment.
   *
   * @Event
   *
   * @see \Drupal\commerce_shipping\Event\ShipmentEvent
   */
  const SHIPMENT_PRESAVE = 'commerce_shipping.commerce_shipment.presave';

  /**
   * Name of the event fired after saving a new shipment.
   *
   * @Event
   *
   * @see \Drupal\commerce_shipping\Event\ShipmentEvent
   */
  const SHIPMENT_INSERT = 'commerce_shipping.commerce_shipment.insert';

  /**
   * Name of the event fired after saving an existing shipment.
   *
   * @Event
   *
   * @see \Drupal\commerce_shipping\Event\ShipmentEvent
   */
  const SHIPMENT_UPDATE = 'commerce_shipping.commerce_shipment.update';

  /**
   * Name of the event fired before deleting a shipment.
   *
   * @Event
   *
   * @see \Drupal\commerce_shipping\Event\ShipmentEvent
   */
  const SHIPMENT_PREDELETE = 'commerce_shipping.commerce_shipment.predelete';

  /**
   * Name of the event fired after deleting a shipment.
   *
   * @Event
   *
   * @see \Drupal\commerce_shipping\Event\ShipmentEvent
   */
  const SHIPMENT_DELETE = 'commerce_shipping.commerce_shipment.delete';

  /**
   * Name of the event fired after calculating shipping rates.
   *
   * @Event
   *
   * @see \Drupal\commerce_shipping\Event\ShippingRatesEvent
   */
  const SHIPPING_RATES = 'commerce_shipping.rates';

}

Members

Namesort descending Modifiers Type Description Overrides
ShippingEvents::FILTER_SHIPPING_METHODS constant Name of the event fired when shipping methods are loaded for a shipment.
ShippingEvents::SHIPMENT_CREATE constant Name of the event fired after creating a new shipment.
ShippingEvents::SHIPMENT_DELETE constant Name of the event fired after deleting a shipment.
ShippingEvents::SHIPMENT_INSERT constant Name of the event fired after saving a new shipment.
ShippingEvents::SHIPMENT_LOAD constant Name of the event fired after loading a shipment.
ShippingEvents::SHIPMENT_PREDELETE constant Name of the event fired before deleting a shipment.
ShippingEvents::SHIPMENT_PRESAVE constant Name of the event fired before saving a shipment.
ShippingEvents::SHIPMENT_UPDATE constant Name of the event fired after saving an existing shipment.
ShippingEvents::SHIPPING_RATES constant Name of the event fired after calculating shipping rates.