public function PromotionInterface::clear in Commerce Core 8.2
Allows a promotion to clean up any modifications done to the given order.
Parameters
\Drupal\commerce_order\Entity\OrderInterface $order: The order.
1 method overrides PromotionInterface::clear()
- Promotion::clear in modules/
promotion/ src/ Entity/ Promotion.php - Allows a promotion to clean up any modifications done to the given order.
File
- modules/
promotion/ src/ Entity/ PromotionInterface.php, line 432
Class
- PromotionInterface
- Defines the interface for promotions.
Namespace
Drupal\commerce_promotion\EntityCode
public function clear(OrderInterface $order);