public function Coupon::getPromotionId in Commerce Core 8.2
Gets the parent promotion ID.
Return value
int|null The promotion ID, or null.
Overrides CouponInterface::getPromotionId
1 call to Coupon::getPromotionId()
- Coupon::urlRouteParameters in modules/
promotion/ src/ Entity/ Coupon.php - Gets an array of placeholders for this entity.
File
- modules/
promotion/ src/ Entity/ Coupon.php, line 85
Class
- Coupon
- Defines the Coupon entity.
Namespace
Drupal\commerce_promotion\EntityCode
public function getPromotionId() {
return $this
->get('promotion_id')->target_id;
}