function StringFilter::opNotRegex

Same name and namespace in other branches
  1. 10 core/modules/views/src/Plugin/views/filter/StringFilter.php \Drupal\views\Plugin\views\filter\StringFilter::opNotRegex()

Filters by a negated regular expression.

Parameters

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

File

core/modules/views/src/Plugin/views/filter/StringFilter.php, line 453

Class

StringFilter
Basic textfield filter to handle string filtering commands.

Namespace

Drupal\views\Plugin\views\filter

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.