public function Promotion::setDisplayName in Commerce Core 8.2
Sets the promotion display name.
Parameters
string $display_name: The promotion display name.
Return value
$this
Overrides PromotionInterface::setDisplayName
File
- modules/
promotion/ src/ Entity/ Promotion.php, line 145
Class
- Promotion
- Defines the promotion entity class.
Namespace
Drupal\commerce_promotion\EntityCode
public function setDisplayName($display_name) {
$this
->set('display_name', $display_name);
return $this;
}