You are here

protected function EmailVerification::operators in User email verification 8

Returns an array of operator information.

Return value

array

2 calls to EmailVerification::operators()
EmailVerification::operatorOptions in src/Plugin/views/filter/EmailVerification.php
Provide a list of options for the default operator form. Should be overridden by classes that don't override operatorForm
EmailVerification::query in src/Plugin/views/filter/EmailVerification.php
Add this filter to the query.

File

src/Plugin/views/filter/EmailVerification.php, line 84

Class

EmailVerification
Simple filter to handle matching of boolean values

Namespace

Drupal\user_email_verification\Plugin\views\filter

Code

protected function operators() {
  return [
    '=' => [
      'title' => $this
        ->t('Is equal to'),
      'method' => 'queryOpBoolean',
      'short' => $this
        ->t('='),
      'values' => 1,
      'query_operator' => self::EQUAL,
    ],
    '!=' => [
      'title' => $this
        ->t('Is not equal to'),
      'method' => 'queryOpBoolean',
      'short' => $this
        ->t('!='),
      'values' => 1,
      'query_operator' => self::NOT_EQUAL,
    ],
  ];
}