function Combine::op_regex in Views (for Drupal 7) 8.3
Overrides String::op_regex
File
- 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\filterCode
function op_regex($field) {
  $placeholder = $this
    ->placeholder();
  $this->query
    ->add_where_expression($this->options['group'], "{$field} RLIKE {$placeholder}", array(
    $placeholder => $this->value,
  ));
}