TrueFalseOptions.php

Namespace

Drupal\rules\TypedData\Options

File

src/TypedData/Options/TrueFalseOptions.php

View source
<?php

namespace Drupal\rules\TypedData\Options;

use Drupal\Core\Session\AccountInterface;

/**
 * Options provider to return a True / False choice.
 */
class TrueFalseOptions extends OptionsProviderBase {
    
    /**
     * {@inheritdoc}
     */
    public function getPossibleOptions(AccountInterface $account = NULL) {
        return [
            0 => $this->t('False'),
            1 => $this->t('True'),
        ];
    }

}

Classes

Title Deprecated Summary
TrueFalseOptions Options provider to return a True / False choice.