public function PromotionInterface::removeCoupon in Commerce Core 8.2
Removes a coupon.
Parameters
\Drupal\commerce_promotion\Entity\CouponInterface $coupon: The coupon.
Return value
$this
1 method overrides PromotionInterface::removeCoupon()
- Promotion::removeCoupon in modules/
promotion/ src/ Entity/ Promotion.php - Removes a coupon.
File
- modules/
promotion/ src/ Entity/ PromotionInterface.php, line 222
Class
- PromotionInterface
- Defines the interface for promotions.
Namespace
Drupal\commerce_promotion\EntityCode
public function removeCoupon(CouponInterface $coupon);