function NumericFilter::opNotRegex
Same name in other branches
- 10 core/modules/views/src/Plugin/views/filter/NumericFilter.php \Drupal\views\Plugin\views\filter\NumericFilter::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/ NumericFilter.php, line 395
Class
- NumericFilter
- Simple filter to handle greater than/less than filters.
Namespace
Drupal\views\Plugin\views\filterCode
protected function opNotRegex($field) {
$this->query
->addWhere($this->options['group'], $field, $this->value['value'], 'NOT REGEXP');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.