You are here

public function PromotionUsageInterface::deleteByCoupon in Commerce Core 8.2

Deletes all usage for the given coupons.

Parameters

\Drupal\commerce_promotion\Entity\CouponInterface[] $coupons: The coupons.

1 method overrides PromotionUsageInterface::deleteByCoupon()
PromotionUsage::deleteByCoupon in modules/promotion/src/PromotionUsage.php
Deletes all usage for the given coupons.

File

modules/promotion/src/PromotionUsageInterface.php, line 53

Class

PromotionUsageInterface
Tracks promotion usage.

Namespace

Drupal\commerce_promotion

Code

public function deleteByCoupon(array $coupons);