function StringFilter::opEqual
Same name in other branches
- 8.9.x core/modules/views/src/Plugin/views/filter/StringFilter.php \Drupal\views\Plugin\views\filter\StringFilter::opEqual()
- 10 core/modules/views/src/Plugin/views/filter/StringFilter.php \Drupal\views\Plugin\views\filter\StringFilter::opEqual()
- 11.x core/modules/views/src/Plugin/views/filter/StringFilter.php \Drupal\views\Plugin\views\filter\StringFilter::opEqual()
Adds a where clause for the operation, 'equals'.
1 method overrides StringFilter::opEqual()
- Combine::opEqual in core/
modules/ views/ src/ Plugin/ views/ filter/ Combine.php - Adds a where clause for the operation, 'equals'.
File
-
core/
modules/ views/ src/ Plugin/ views/ filter/ StringFilter.php, line 354
Class
- StringFilter
- Basic textfield filter to handle string filtering commands.
Namespace
Drupal\views\Plugin\views\filterCode
public function opEqual($field) {
$this->query
->addWhere($this->options['group'], $field, $this->value, $this->operator());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.