public function Promotion::getName in Commerce Core 8.2
Gets the promotion name.
This name is admin-facing.
Return value
string The promotion name.
Overrides PromotionInterface::getName
File
- modules/
promotion/ src/ Entity/ Promotion.php, line 123
Class
- Promotion
- Defines the promotion entity class.
Namespace
Drupal\commerce_promotion\EntityCode
public function getName() {
return $this
->get('name')->value;
}