public function CouponInterface::getUsageLimit in Commerce Core 8.2
Gets the coupon usage limit.
Represents the maximum number of times the coupon can be used. 0 for unlimited.
Return value
int The coupon usage limit.
1 method overrides CouponInterface::getUsageLimit()
- Coupon::getUsageLimit in modules/
promotion/ src/ Entity/ Coupon.php - Gets the coupon usage limit.
File
- modules/
promotion/ src/ Entity/ CouponInterface.php, line 75
Class
- CouponInterface
- Provides an interface for defining coupon entities.
Namespace
Drupal\commerce_promotion\EntityCode
public function getUsageLimit();