You are here

protected function StringFilter::opNotLike in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/filter/StringFilter.php \Drupal\views\Plugin\views\filter\StringFilter::opNotLike()
  2. 10 core/modules/views/src/Plugin/views/filter/StringFilter.php \Drupal\views\Plugin\views\filter\StringFilter::opNotLike()
1 method overrides StringFilter::opNotLike()
Combine::opNotLike in core/modules/views/src/Plugin/views/filter/Combine.php

File

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

Class

StringFilter
Basic textfield filter to handle string filtering commands including equality, like, not like, etc.

Namespace

Drupal\views\Plugin\views\filter

Code

protected function opNotLike($field) {
  $this->query
    ->addWhere($this->options['group'], $field, '%' . $this->connection
    ->escapeLike($this->value) . '%', 'NOT LIKE');
}