public function CouponInterface::getPromotionId in Commerce Core 8.2
Gets the parent promotion ID.
Return value
int|null The promotion ID, or null.
1 method overrides CouponInterface::getPromotionId()
- Coupon::getPromotionId in modules/
promotion/ src/ Entity/ Coupon.php - Gets the parent promotion ID.
File
- modules/
promotion/ src/ Entity/ CouponInterface.php, line 28
Class
- CouponInterface
- Provides an interface for defining coupon entities.
Namespace
Drupal\commerce_promotion\EntityCode
public function getPromotionId();