rules-8.x-3.x-dev/src/TypedData/Options/AndOrOptions.php
src/TypedData/Options/AndOrOptions.php
<?php
declare(strict_types=1);
namespace Drupal\rules\TypedData\Options;
use Drupal\Core\Session\AccountInterface;
/**
* Options provider to return a choice of 'AND' or 'OR'.
*/
class AndOrOptions extends OptionsProviderBase {
/**
* {@inheritdoc}
*/
public function getPossibleOptions(?AccountInterface $account = NULL) {
return [
'AND' => $this->t('All selected (and)'),
'OR' => $this->t('Any selected (or)'),
];
}
}
