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