You are here

interface OrderPreprocessorInterface in Commerce Core 8.2

Defines an interface for order preprocessors.

Order preprocessors are responsible for resetting an order to an unprocessed state prior to processing, e.g. to revert changes to order items made by processors as in the case of a Buy X, Get Y promotion.

Hierarchy

Expanded class hierarchy of OrderPreprocessorInterface

All classes that implement OrderPreprocessorInterface

1 file declares its use of OrderPreprocessorInterface
PromotionOrderProcessor.php in modules/promotion/src/PromotionOrderProcessor.php

File

modules/order/src/OrderPreprocessorInterface.php, line 14

Namespace

Drupal\commerce_order
View source
interface OrderPreprocessorInterface {

  /**
   * Preprocesses an order.
   *
   * @param \Drupal\commerce_order\Entity\OrderInterface $order
   *   The order.
   */
  public function preprocess(OrderInterface $order);

}

Members