public function Promotion::getCompatibility in Commerce Core 8.2
Gets the promotion compatibility.
Return value
string The compatibility.
Overrides PromotionInterface::getCompatibility
1 call to Promotion::getCompatibility()
- Promotion::applies in modules/
promotion/ src/ Entity/ Promotion.php - Checks whether the promotion can be applied to the given order.
File
- modules/
promotion/ src/ Entity/ Promotion.php, line 457
Class
- Promotion
- Defines the promotion entity class.
Namespace
Drupal\commerce_promotion\EntityCode
public function getCompatibility() {
return $this
->get('compatibility')->value;
}