You are here

protected function NumericFilter::opRegex in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Plugin/views/filter/NumericFilter.php \Drupal\views\Plugin\views\filter\NumericFilter::opRegex()

Filters by a regular expression.

Parameters

string $field: The expression pointing to the queries field, for example "foo.bar".

File

core/modules/views/src/Plugin/views/filter/NumericFilter.php, line 280
Contains \Drupal\views\Plugin\views\filter\NumericFilter.

Class

NumericFilter
Simple filter to handle greater than/less than filters

Namespace

Drupal\views\Plugin\views\filter

Code

protected function opRegex($field) {
  $this->query
    ->addWhere($this->options['group'], $field, $this->value, 'REGEXP');
}