You are here

public function Promotion::setDescription in Commerce Core 8.2

Sets the promotion description.

Parameters

string $description: The promotion description.

Return value

$this

Overrides PromotionInterface::setDescription

File

modules/promotion/src/Entity/Promotion.php, line 160

Class

Promotion
Defines the promotion entity class.

Namespace

Drupal\commerce_promotion\Entity

Code

public function setDescription($description) {
  $this
    ->set('description', $description);
  return $this;
}