public function PromotionInterface::setCoupons in Commerce Core 8.2
Sets the coupons.
Parameters
\Drupal\commerce_promotion\Entity\CouponInterface[] $coupons: The coupons.
Return value
$this
1 method overrides PromotionInterface::setCoupons()
- Promotion::setCoupons in modules/
promotion/ src/ Entity/ Promotion.php - Sets the coupons.
File
- modules/
promotion/ src/ Entity/ PromotionInterface.php, line 194
Class
- PromotionInterface
- Defines the interface for promotions.
Namespace
Drupal\commerce_promotion\EntityCode
public function setCoupons(array $coupons);