function StringFilter::opContains
1 method overrides StringFilter::opContains()
- Combine::opContains in core/
modules/ views/ src/ Plugin/ views/ filter/ Combine.php
File
-
core/
modules/ views/ src/ Plugin/ views/ filter/ StringFilter.php, line 358
Class
- StringFilter
- Basic textfield filter to handle string filtering commands.
Namespace
Drupal\views\Plugin\views\filterCode
protected function opContains($field) {
$operator = $this->getConditionOperator('LIKE');
$this->query
->addWhere($this->options['group'], $field, '%' . $this->connection
->escapeLike($this->value) . '%', $operator);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.