function CalculationOperatorOptions::getPossibleOptions

File

src/TypedData/Options/CalculationOperatorOptions.php, line 15

Class

CalculationOperatorOptions
Options provider to return a choice of numeric calculation operators.

Namespace

Drupal\rules\TypedData\Options

Code

public function getPossibleOptions(AccountInterface $account = NULL) {
  return [
    '+' => $this->t('+ (plus)'),
    '-' => $this->t('- (minus)'),
    '*' => $this->t('* (multiply)'),
    '/' => $this->t('/ (divide)'),
    'min' => $this->t('minimum of the two values'),
    'max' => $this->t('maximum of the two values'),
  ];
}