function OnOffOptions::getPossibleOptions

Overrides OptionsProviderInterface::getPossibleOptions

File

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

Class

OnOffOptions
Options provider to return an On / Off choice.

Namespace

Drupal\rules\TypedData\Options

Code

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