public function String::query

Same name in this branch

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

1 method overrides String::query()
Combine::query in drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/Combine.php
Add this filter to the query.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php, line 255
Definition of Drupal\views\Plugin\views\filter\String.

Class

String
Basic textfield filter to handle string filtering commands including equality, like, not like, etc.

Namespace

Drupal\views\Plugin\views\filter

Code

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