You are here

protected function OrderTotalCondition::doEvaluate in Ubercart 8.4

Compares order total.

Parameters

\Drupal\uc_order\OrderInterface $order: The order to check.

string $operator: The comparison operator.

float $value: The target value.

Return value

bool TRUE if the order total meets the specified condition.

File

uc_order/src/Plugin/Condition/OrderTotalCondition.php, line 54

Class

OrderTotalCondition
Provides 'Order total value' condition.

Namespace

Drupal\uc_order\Plugin\Condition

Code

protected function doEvaluate(OrderInterface $order, $operator, $value) {
  return $this
    ->compareComparisonOptions($order
    ->getTotal(), $operator, $value);
}