function Combine::op_regex

Overrides String::op_regex

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/Combine.php, line 131
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_regex($field) {
  $placeholder = $this
    ->placeholder();
  $this->query
    ->add_where_expression($this->options['group'], "{$field} RLIKE {$placeholder}", array(
    $placeholder => $this->value,
  ));
}