function Equality::operatorOptions
Same name in other branches
- 8.9.x core/modules/views/src/Plugin/views/filter/Equality.php \Drupal\views\Plugin\views\filter\Equality::operatorOptions()
- 10 core/modules/views/src/Plugin/views/filter/Equality.php \Drupal\views\Plugin\views\filter\Equality::operatorOptions()
- 11.x core/modules/views/src/Plugin/views/filter/Equality.php \Drupal\views\Plugin\views\filter\Equality::operatorOptions()
Provide simple equality operator.
Overrides FilterPluginBase::operatorOptions
File
-
core/
modules/ views/ src/ Plugin/ views/ filter/ Equality.php, line 26
Class
- Equality
- Simple filter to handle equal to / not equal to filters.
Namespace
Drupal\views\Plugin\views\filterCode
public function operatorOptions() {
return [
'=' => $this->t('Is equal to'),
'!=' => $this->t('Is not equal to'),
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.