function StringFilter::getConditionOperator
Same name in other branches
- 9 core/modules/views/src/Plugin/views/filter/StringFilter.php \Drupal\views\Plugin\views\filter\StringFilter::getConditionOperator()
- 11.x core/modules/views/src/Plugin/views/filter/StringFilter.php \Drupal\views\Plugin\views\filter\StringFilter::getConditionOperator()
Get specified condition operator mapping value.
Parameters
string $operator: Condition operator.
Return value
string Specified condition operator mapping value.
17 calls to StringFilter::getConditionOperator()
- Combine::opContains in core/
modules/ views/ src/ Plugin/ views/ filter/ Combine.php - Combine::opContainsWord in core/
modules/ views/ src/ Plugin/ views/ filter/ Combine.php - Filters by one or more words.
- Combine::opEndsWith in core/
modules/ views/ src/ Plugin/ views/ filter/ Combine.php - Combine::opEqual in core/
modules/ views/ src/ Plugin/ views/ filter/ Combine.php - Adds a where clause for the operation, 'equals'.
- Combine::opNotEndsWith in core/
modules/ views/ src/ Plugin/ views/ filter/ Combine.php
File
-
core/
modules/ views/ src/ Plugin/ views/ filter/ StringFilter.php, line 331
Class
- StringFilter
- Basic textfield filter to handle string filtering commands.
Namespace
Drupal\views\Plugin\views\filterCode
protected function getConditionOperator($operator) {
$mapping = $this->connection
->mapConditionOperator($operator);
return $mapping['operator'] ?? $operator;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.