public function Promotion::getUsageLimit in Commerce Core 8.2
Gets the promotion usage limit.
Represents the maximum number of times the promotion can be used. 0 for unlimited.
Return value
int The promotion usage limit.
Overrides PromotionInterface::getUsageLimit
1 call to Promotion::getUsageLimit()
- Promotion::available in modules/promotion/ src/ Entity/ Promotion.php 
- Checks whether the promotion is available for the given order.
File
- modules/promotion/ src/ Entity/ Promotion.php, line 393 
Class
- Promotion
- Defines the promotion entity class.
Namespace
Drupal\commerce_promotion\EntityCode
public function getUsageLimit() {
  return $this
    ->get('usage_limit')->value;
}