function AndOrOptions::getPossibleOptions

Overrides OptionsProviderInterface::getPossibleOptions

File

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

Class

AndOrOptions
Options provider to return a choice of 'AND' or 'OR'.

Namespace

Drupal\rules\TypedData\Options

Code

public function getPossibleOptions(AccountInterface $account = NULL) {
    return [
        'AND' => $this->t('All selected (and)'),
        'OR' => $this->t('Any selected (or)'),
    ];
}