function TrueFalseOptions::getPossibleOptions

Overrides OptionsProviderInterface::getPossibleOptions

File

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

Class

TrueFalseOptions
Options provider to return a True / False choice.

Namespace

Drupal\rules\TypedData\Options

Code

public function getPossibleOptions(AccountInterface $account = NULL) {
    return [
        0 => $this->t('False'),
        1 => $this->t('True'),
    ];
}