You are here

public function Promotion::setName in Commerce Core 8.2

Sets the promotion name.

Parameters

string $name: The promotion name.

Return value

$this

Overrides PromotionInterface::setName

File

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

Class

Promotion
Defines the promotion entity class.

Namespace

Drupal\commerce_promotion\Entity

Code

public function setName($name) {
  $this
    ->set('name', $name);
  return $this;
}