You are here

function Combine::op_equal in Views (for Drupal 7) 8.3

Overrides String::op_equal

File

lib/Drupal/views/Plugin/views/filter/Combine.php, line 95
Definition of Drupal\views\Plugin\views\filter\Combine.

Class

Combine
Filter handler which allows to search on multiple fields.

Namespace

Drupal\views\Plugin\views\filter

Code

function op_equal($field) {
  $placeholder = $this
    ->placeholder();
  $operator = $this
    ->operator();
  $this->query
    ->add_where_expression($this->options['group'], "{$field} {$operator} {$placeholder}", array(
    $placeholder => $this->value,
  ));
}