protected function String::opStartsWith

1 method overrides String::opStartsWith()
Combine::opStartsWith in drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/Combine.php

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php, line 304
Definition of Drupal\views\Plugin\views\filter\String.

Class

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

Namespace

Drupal\views\Plugin\views\filter

Code

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