You are here

public function PromotionUsageInterface::loadMultiple in Commerce Core 8.2

Loads the usage for the given promotions.

The optional $mail parameter can be used to restrict the usage count to a specific customer email.

Parameters

\Drupal\commerce_promotion\Entity\PromotionInterface[] $promotions: The promotions.

string $mail: (Optional) The customer email.

Return value

array The usage counts, keyed by promotion ID.

1 method overrides PromotionUsageInterface::loadMultiple()
PromotionUsage::loadMultiple in modules/promotion/src/PromotionUsage.php
Loads the usage for the given promotions.

File

modules/promotion/src/PromotionUsageInterface.php, line 101

Class

PromotionUsageInterface
Tracks promotion usage.

Namespace

Drupal\commerce_promotion

Code

public function loadMultiple(array $promotions, $mail = NULL);