You are here

public function PromotionInterface::setEndDate in Commerce Core 8.2

Sets the promotion end date/time.

Parameters

\Drupal\Core\Datetime\DrupalDateTime $end_date: The promotion end date/time.

Return value

$this

1 method overrides PromotionInterface::setEndDate()
Promotion::setEndDate in modules/promotion/src/Entity/Promotion.php
Sets the promotion end date/time.

File

modules/promotion/src/Entity/PromotionInterface.php, line 333

Class

PromotionInterface
Defines the interface for promotions.

Namespace

Drupal\commerce_promotion\Entity

Code

public function setEndDate(DrupalDateTime $end_date = NULL);