public function Promotion::getDisplayName in Commerce Core 8.2
Gets the promotion display name.
This name is user-facing. Shown in the order total summary.
Return value
string The promotion display name. If empty, use t('Discount').
Overrides PromotionInterface::getDisplayName
File
- modules/
promotion/ src/ Entity/ Promotion.php, line 138
Class
- Promotion
- Defines the promotion entity class.
Namespace
Drupal\commerce_promotion\EntityCode
public function getDisplayName() {
return $this
->get('display_name')->value;
}