You are here

final class PromotionEvents in Commerce Core 8.2

Hierarchy

Expanded class hierarchy of PromotionEvents

File

modules/promotion/src/Event/PromotionEvents.php, line 5

Namespace

Drupal\commerce_promotion\Event
View source
final class PromotionEvents {

  /**
   * Name of the event fired after loading a promotion.
   *
   * @Event
   *
   * @see \Drupal\commerce_promotion\Event\PromotionEvent
   */
  const PROMOTION_LOAD = 'commerce_promotion.commerce_promotion.load';

  /**
   * Name of the event fired after creating a new promotion.
   *
   * Fired before the promotion is saved.
   *
   * @Event
   *
   * @see \Drupal\commerce_promotion\Event\PromotionEvent
   */
  const PROMOTION_CREATE = 'commerce_promotion.commerce_promotion.create';

  /**
   * Name of the event fired before saving a promotion.
   *
   * @Event
   *
   * @see \Drupal\commerce_promotion\Event\PromotionEvent
   */
  const PROMOTION_PRESAVE = 'commerce_promotion.commerce_promotion.presave';

  /**
   * Name of the event fired after saving a new promotion.
   *
   * @Event
   *
   * @see \Drupal\commerce_promotion\Event\PromotionEvent
   */
  const PROMOTION_INSERT = 'commerce_promotion.commerce_promotion.insert';

  /**
   * Name of the event fired after saving an existing promotion.
   *
   * @Event
   *
   * @see \Drupal\commerce_promotion\Event\PromotionEvent
   */
  const PROMOTION_UPDATE = 'commerce_promotion.commerce_promotion.update';

  /**
   * Name of the event fired before deleting a promotion.
   *
   * @Event
   *
   * @see \Drupal\commerce_promotion\Event\PromotionEvent
   */
  const PROMOTION_PREDELETE = 'commerce_promotion.commerce_promotion.predelete';

  /**
   * Name of the event fired after deleting a promotion.
   *
   * @Event
   *
   * @see \Drupal\commerce_promotion\Event\PromotionEvent
   */
  const PROMOTION_DELETE = 'commerce_promotion.commerce_promotion.delete';

  /**
   * Name of the event fired after saving a new promotion translation.
   *
   * @Event
   *
   * @see \Drupal\commerce_promotion\Event\PromotionEvent
   */
  const PROMOTION_TRANSLATION_INSERT = 'commerce_promotion.commerce_promotion.translation_insert';

  /**
   * Name of the event fired after deleting a promotion translation.
   *
   * @Event
   *
   * @see \Drupal\commerce_promotion\Event\PromotionEvent
   */
  const PROMOTION_TRANSLATION_DELETE = 'commerce_promotion.commerce_promotion.translation_delete';

  /**
   * Name of the event fired after loading a coupon.
   *
   * @Event
   *
   * @see \Drupal\commerce_promotion\Event\CouponEvent
   */
  const COUPON_LOAD = 'commerce_promotion.commerce_promotion_coupon.load';

  /**
   * Name of the event fired after creating a new coupon.
   *
   * Fired before the coupon is saved.
   *
   * @Event
   *
   * @see \Drupal\commerce_promotion\Event\CouponEvent
   */
  const COUPON_CREATE = 'commerce_promotion.commerce_promotion_coupon.create';

  /**
   * Name of the event fired before saving a coupon.
   *
   * @Event
   *
   * @see \Drupal\commerce_promotion\Event\CouponEvent
   */
  const COUPON_PRESAVE = 'commerce_promotion.commerce_promotion_coupon.presave';

  /**
   * Name of the event fired after saving a new coupon.
   *
   * @Event
   *
   * @see \Drupal\commerce_promotion\Event\CouponEvent
   */
  const COUPON_INSERT = 'commerce_promotion.commerce_promotion_coupon.insert';

  /**
   * Name of the event fired after saving an existing coupon.
   *
   * @Event
   *
   * @see \Drupal\commerce_promotion\Event\CouponEvent
   */
  const COUPON_UPDATE = 'commerce_promotion.commerce_promotion_coupon.update';

  /**
   * Name of the event fired before deleting a coupon.
   *
   * @Event
   *
   * @see \Drupal\commerce_promotion\Event\CouponEvent
   */
  const COUPON_PREDELETE = 'commerce_promotion.commerce_promotion_coupon.predelete';

  /**
   * Name of the event fired after deleting a coupon.
   *
   * @Event
   *
   * @see \Drupal\commerce_promotion\Event\CouponEvent
   */
  const COUPON_DELETE = 'commerce_promotion.commerce_promotion_coupon.delete';

}

Members

Namesort descending Modifiers Type Description Overrides
PromotionEvents::COUPON_CREATE constant Name of the event fired after creating a new coupon.
PromotionEvents::COUPON_DELETE constant Name of the event fired after deleting a coupon.
PromotionEvents::COUPON_INSERT constant Name of the event fired after saving a new coupon.
PromotionEvents::COUPON_LOAD constant Name of the event fired after loading a coupon.
PromotionEvents::COUPON_PREDELETE constant Name of the event fired before deleting a coupon.
PromotionEvents::COUPON_PRESAVE constant Name of the event fired before saving a coupon.
PromotionEvents::COUPON_UPDATE constant Name of the event fired after saving an existing coupon.
PromotionEvents::PROMOTION_CREATE constant Name of the event fired after creating a new promotion.
PromotionEvents::PROMOTION_DELETE constant Name of the event fired after deleting a promotion.
PromotionEvents::PROMOTION_INSERT constant Name of the event fired after saving a new promotion.
PromotionEvents::PROMOTION_LOAD constant Name of the event fired after loading a promotion.
PromotionEvents::PROMOTION_PREDELETE constant Name of the event fired before deleting a promotion.
PromotionEvents::PROMOTION_PRESAVE constant Name of the event fired before saving a promotion.
PromotionEvents::PROMOTION_TRANSLATION_DELETE constant Name of the event fired after deleting a promotion translation.
PromotionEvents::PROMOTION_TRANSLATION_INSERT constant Name of the event fired after saving a new promotion translation.
PromotionEvents::PROMOTION_UPDATE constant Name of the event fired after saving an existing promotion.