You are here

public function OrderConditionBase::comparisonOptions in Ubercart 8.4

Operator options callback.

Return value

string[] An array of logic operations for multiple role matching.

File

uc_order/src/Plugin/Condition/OrderConditionBase.php, line 57

Class

OrderConditionBase
Base class containing useful functions for some Order conditions.

Namespace

Drupal\uc_order\Plugin\Condition

Code

public function comparisonOptions() {
  return [
    'less' => $this
      ->t('Total is less than specified value.'),
    'less_equal' => $this
      ->t('Total is less than or equal to specified value.'),
    'equal' => $this
      ->t('Total is equal to specified value.'),
    'greater_equal' => $this
      ->t('Total is greater than or equal to specified value.'),
    'greater' => $this
      ->t('Total is greater than specified value.'),
  ];
}