public function WebformSubmissionComputedFilter::operators in Webform Views Integration 8.5
This kind of construct makes it relatively easy for a child class to add or remove functionality by overriding this function and adding/removing items from this array.
Overrides WebformSubmissionFieldFilter::operators
File
- src/
Plugin/ views/ filter/ WebformSubmissionComputedFilter.php, line 26
Class
- WebformSubmissionComputedFilter
- Filter based on value of a computed webform element.
Namespace
Drupal\webform_views\Plugin\views\filterCode
public function operators() {
$operators = parent::operators();
foreach ($operators as $k => $v) {
if ($operators[$k]['webform_views_element_type'] == WebformSubmissionFieldFilter::ELEMENT_TYPE) {
$operators[$k]['webform_views_element_type'] = 'textfield';
}
}
return $operators;
}