public function Promotion::getConditionOperator in Commerce Core 8.2
Gets the condition operator.
Return value
string The condition operator. Possible values: AND, OR.
Overrides PromotionInterface::getConditionOperator
1 call to Promotion::getConditionOperator()
- 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 303
Class
- Promotion
- Defines the promotion entity class.
Namespace
Drupal\commerce_promotion\EntityCode
public function getConditionOperator() {
return $this
->get('condition_operator')->value;
}