public function PromotionInterface::getOffer in Commerce Core 8.2
Gets the offer.
Return value
\Drupal\commerce_promotion\Plugin\Commerce\PromotionOffer\PromotionOfferInterface|null The offer, or NULL if not yet available.
1 method overrides PromotionInterface::getOffer()
- Promotion::getOffer in modules/
promotion/ src/ Entity/ Promotion.php - Gets the offer.
File
- modules/
promotion/ src/ Entity/ PromotionInterface.php, line 122
Class
- PromotionInterface
- Defines the interface for promotions.
Namespace
Drupal\commerce_promotion\EntityCode
public function getOffer();