function ComparisonOperatorOptions::getPossibleOptions

Overrides OptionsProviderInterface::getPossibleOptions

File

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

Class

ComparisonOperatorOptions
Options provider to return a choice of data comparison operators.

Namespace

Drupal\rules\TypedData\Options

Code

public function getPossibleOptions(AccountInterface $account = NULL) {
    return [
        '==' => $this->t('== (equals)'),
        '<' => $this->t('< (less than)'),
        '>' => $this->t('> (greater than)'),
        'contains' => $this->t('Contains (for strings or arrays)'),
        'in' => $this->t('In (for arrays or lists)'),
    ];
}