You are here

public function CouponStorageInterface::loadMultipleByPromotion in Commerce Core 8.2

Loads all coupons for the given promotion.

Parameters

\Drupal\commerce_promotion\Entity\PromotionInterface $promotion: The promotion.

Return value

\Drupal\commerce_promotion\Entity\CouponInterface[] The coupons.

1 method overrides CouponStorageInterface::loadMultipleByPromotion()
CouponStorage::loadMultipleByPromotion in modules/promotion/src/CouponStorage.php
Loads all coupons for the given promotion.

File

modules/promotion/src/CouponStorageInterface.php, line 33

Class

CouponStorageInterface
Defines the interface for coupon storage.

Namespace

Drupal\commerce_promotion

Code

public function loadMultipleByPromotion(PromotionInterface $promotion);