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
- interface \Drupal\commerce_order\OrderPreprocessorInterface
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_orderView source
interface OrderPreprocessorInterface {
/**
* Preprocesses an order.
*
* @param \Drupal\commerce_order\Entity\OrderInterface $order
* The order.
*/
public function preprocess(OrderInterface $order);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
OrderPreprocessorInterface:: |
public | function | Preprocesses an order. | 1 |