You are here

public function EmailVerification::query in User email verification 8

Add this filter to the query.

Due to the nature of fapi, the value and the operator have an unintended level of indirection. You will find them in $this->operator and $this->value respectively.

Overrides FilterPluginBase::query

File

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

Class

EmailVerification
Simple filter to handle matching of boolean values

Namespace

Drupal\user_email_verification\Plugin\views\filter

Code

public function query() {
  $this
    ->ensureMyTable();
  $field = "{$this->tableAlias}.{$this->realField}";
  $info = $this
    ->operators();
  if (!empty($info[$this->operator]['method'])) {
    call_user_func([
      $this,
      $info[$this->operator]['method'],
    ], $field, $info[$this->operator]['query_operator']);
  }
}