public function CouponInterface::getCode in Commerce Core 8.2
Gets the coupon code.
Return value
string Code for the coupon.
1 method overrides CouponInterface::getCode()
- Coupon::getCode in modules/
promotion/ src/ Entity/ Coupon.php - Gets the coupon code.
File
- modules/
promotion/ src/ Entity/ CouponInterface.php, line 36
Class
- CouponInterface
- Provides an interface for defining coupon entities.
Namespace
Drupal\commerce_promotion\EntityCode
public function getCode();