public function PromotionInterface::setUsageLimit in Commerce Core 8.2
Sets the promotion usage limit.
Parameters
int $usage_limit: The promotion usage limit.
Return value
$this
1 method overrides PromotionInterface::setUsageLimit()
- Promotion::setUsageLimit in modules/
promotion/ src/ Entity/ Promotion.php - Sets the promotion usage limit.
File
- modules/
promotion/ src/ Entity/ PromotionInterface.php, line 254
Class
- PromotionInterface
- Defines the interface for promotions.
Namespace
Drupal\commerce_promotion\EntityCode
public function setUsageLimit($usage_limit);