public function PromotionInterface::setOffer in Commerce Core 8.2
Sets the offer.
Parameters
\Drupal\commerce_promotion\Plugin\Commerce\PromotionOffer\PromotionOfferInterface $offer: The offer.
Return value
$this
1 method overrides PromotionInterface::setOffer()
- Promotion::setOffer in modules/
promotion/ src/ Entity/ Promotion.php - Sets the offer.
File
- modules/
promotion/ src/ Entity/ PromotionInterface.php, line 132
Class
- PromotionInterface
- Defines the interface for promotions.
Namespace
Drupal\commerce_promotion\EntityCode
public function setOffer(PromotionOfferInterface $offer);