You are here

public function CouponInterface::setEnabled in Commerce Core 8.2

Sets whether the coupon is enabled.

Parameters

bool $enabled: Whether the coupon is enabled.

Return value

$this

1 method overrides CouponInterface::setEnabled()
Coupon::setEnabled in modules/promotion/src/Entity/Coupon.php
Sets whether the coupon is enabled.

File

modules/promotion/src/Entity/CouponInterface.php, line 124

Class

CouponInterface
Provides an interface for defining coupon entities.

Namespace

Drupal\commerce_promotion\Entity

Code

public function setEnabled($enabled);