function YesNoOptions::getPossibleOptions

Overrides OptionsProviderInterface::getPossibleOptions

File

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

Class

YesNoOptions
Options provider to return a Yes / No choice.

Namespace

Drupal\rules\TypedData\Options

Code

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