protected function StringFilter::opStartsWith in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/views/filter/StringFilter.php \Drupal\views\Plugin\views\filter\StringFilter::opStartsWith()
1 method overrides StringFilter::opStartsWith()
- Combine::opStartsWith in core/
modules/ views/ src/ Plugin/ views/ filter/ Combine.php
File
- core/
modules/ views/ src/ Plugin/ views/ filter/ StringFilter.php, line 299 - Contains \Drupal\views\Plugin\views\filter\StringFilter.
Class
- StringFilter
- Basic textfield filter to handle string filtering commands including equality, like, not like, etc.
Namespace
Drupal\views\Plugin\views\filterCode
protected function opStartsWith($field) {
$this->query
->addWhere($this->options['group'], $field, db_like($this->value) . '%', 'LIKE');
}