You are here

public function PaymentBalanceCondition::balanceOptions in Ubercart 8.4

Returns balance options.

File

payment/uc_payment/src/Plugin/Condition/PaymentBalanceCondition.php, line 46

Class

PaymentBalanceCondition
Provides 'Order payment balance' condition.

Namespace

Drupal\uc_payment\Plugin\Condition

Code

public function balanceOptions() {
  $zero = [
    '@zero' => uc_currency_format(0),
  ];
  $options = [
    'less' => $this
      ->t('Balance is less than @zero.', $zero),
    'less_equal' => $this
      ->t('Balance is less than or equal to @zero.', $zero),
    'equal' => $this
      ->t('Balance is equal to @zero.', $zero),
    'greater' => $this
      ->t('Balance is greater than @zero.', $zero),
  ];
  return $options;
}