You are here

public function PromotionOfferBase::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.

Overrides PromotionOfferInterface::clear

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

File

modules/promotion/src/Plugin/Commerce/PromotionOffer/PromotionOfferBase.php, line 115

Class

PromotionOfferBase
Provides the base class for offers.

Namespace

Drupal\commerce_promotion\Plugin\Commerce\PromotionOffer

Code

public function clear(EntityInterface $entity, PromotionInterface $promotion) {
}