public function PromotionInterface::setEnabled in Commerce Core 8.2
Sets whether the promotion is enabled.
Parameters
bool $enabled: Whether the promotion is enabled.
Return value
$this
1 method overrides PromotionInterface::setEnabled()
- Promotion::setEnabled in modules/
promotion/ src/ Entity/ Promotion.php - Sets whether the promotion is enabled.
File
- modules/
promotion/ src/ Entity/ PromotionInterface.php, line 369
Class
- PromotionInterface
- Defines the interface for promotions.
Namespace
Drupal\commerce_promotion\EntityCode
public function setEnabled($enabled);