public function WebformSubmissionWebformCategory::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 StringFilter::operators
File
- src/
Plugin/ views/ filter/ WebformSubmissionWebformCategory.php, line 40
Class
- WebformSubmissionWebformCategory
- Filter for webform category of a webform submission.
Namespace
Drupal\webform_views\Plugin\views\filterCode
public function operators() {
$operators = parent::operators();
unset($operators['word']);
unset($operators['allwords']);
unset($operators['not_starts']);
unset($operators['not_ends']);
unset($operators['not']);
unset($operators['shorterthan']);
unset($operators['longerthan']);
unset($operators['regular_expression']);
$operators['=']['webform_operator'] = '=';
$operators['!=']['webform_operator'] = '<>';
$operators['contains']['webform_operator'] = 'CONTAINS';
$operators['starts']['webform_operator'] = 'STARTS_WITH';
$operators['ends']['webform_operator'] = 'ENDS_WITH';
return $operators;
}