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