You are here

public function PromotionStorageInterface::loadAvailable in Commerce Core 8.2

Loads the available promotions for the given order.

Parameters

\Drupal\commerce_order\Entity\OrderInterface $order: The order.

string[] $offer_ids: (Optional) A list of offer IDs to filter by.

Return value

\Drupal\commerce_promotion\Entity\PromotionInterface[] The available promotions.

1 method overrides PromotionStorageInterface::loadAvailable()
PromotionStorage::loadAvailable in modules/promotion/src/PromotionStorage.php
Loads the available promotions for the given order.

File

modules/promotion/src/PromotionStorageInterface.php, line 24

Class

PromotionStorageInterface
Defines the interface for promotion storage.

Namespace

Drupal\commerce_promotion

Code

public function loadAvailable(OrderInterface $order, array $offer_ids = []);