rules-8.x-3.x-dev/src/TypedData/Options/ComparisonOperatorTextOptions.php
src/TypedData/Options/ComparisonOperatorTextOptions.php
<?php
declare(strict_types=1);
namespace Drupal\rules\TypedData\Options;
use Drupal\Core\Session\AccountInterface;
/**
* Options provider to return a choice of text comparison operators.
*/
class ComparisonOperatorTextOptions extends OptionsProviderBase {
/**
* {@inheritdoc}
*/
public function getPossibleOptions(?AccountInterface $account = NULL) {
return [
'contains' => 'contains',
'starts' => 'starts with',
'ends' => 'ends with',
'regex' => 'matches regex',
];
}
}
