function StringFilter::opNotStartsWith

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

File

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

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 opNotStartsWith($field) {
    $this->query
        ->addWhere($this->options['group'], $field, $this->connection
        ->escapeLike($this->value) . '%', 'NOT LIKE');
}

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