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