You are here

public function PromotionOfferInterface::clear in Commerce Core 8.2

Allows an offer to clean up any modifications done to the given entity.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity.

\Drupal\commerce_promotion\Entity\PromotionInterface $promotion: THe parent promotion.

1 method overrides PromotionOfferInterface::clear()
PromotionOfferBase::clear in modules/promotion/src/Plugin/Commerce/PromotionOffer/PromotionOfferBase.php
Allows an offer to clean up any modifications done to the given entity.

File

modules/promotion/src/Plugin/Commerce/PromotionOffer/PromotionOfferInterface.php, line 50

Class

PromotionOfferInterface
Defines the base interface for offers.

Namespace

Drupal\commerce_promotion\Plugin\Commerce\PromotionOffer

Code

public function clear(EntityInterface $entity, PromotionInterface $promotion);