function StringFilter::operatorValues
2 calls to StringFilter::operatorValues()
- StringFilter::adminSummary in core/
modules/ views/ src/ Plugin/ views/ filter/ StringFilter.php - Display the filter on the administrative summary.
- StringFilter::valueForm in core/
modules/ views/ src/ Plugin/ views/ filter/ StringFilter.php - Provide a simple textfield for equality.
File
-
core/
modules/ views/ src/ Plugin/ views/ filter/ StringFilter.php, line 239
Class
- StringFilter
- Basic textfield filter to handle string filtering commands.
Namespace
Drupal\views\Plugin\views\filterCode
protected function operatorValues($values = 1) {
$options = [];
foreach ($this->operators() as $id => $info) {
if (isset($info['values']) && $info['values'] == $values) {
$options[] = $id;
}
}
return $options;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.