function FilterPluginBase::operatorOptions
Same name in other branches
- 9 core/modules/views/src/Plugin/views/filter/FilterPluginBase.php \Drupal\views\Plugin\views\filter\FilterPluginBase::operatorOptions()
- 8.9.x core/modules/views/src/Plugin/views/filter/FilterPluginBase.php \Drupal\views\Plugin\views\filter\FilterPluginBase::operatorOptions()
- 11.x core/modules/views/src/Plugin/views/filter/FilterPluginBase.php \Drupal\views\Plugin\views\filter\FilterPluginBase::operatorOptions()
Provide a list of options for the default operator form.
Should be overridden by classes that don't override operatorForm.
4 calls to FilterPluginBase::operatorOptions()
- FilterPluginBase::buildExposedForm in core/
modules/ views/ src/ Plugin/ views/ filter/ FilterPluginBase.php - Render our chunk of the exposed filter form when selecting.
- FilterPluginBase::buildExposeForm in core/
modules/ views/ src/ Plugin/ views/ filter/ FilterPluginBase.php - Options form subform for exposed filter options.
- FilterPluginBase::canBuildGroup in core/
modules/ views/ src/ Plugin/ views/ filter/ FilterPluginBase.php - Determine if a filter can be converted into a group.
- FilterPluginBase::operatorForm in core/
modules/ views/ src/ Plugin/ views/ filter/ FilterPluginBase.php - Options form subform for setting the operator.
5 methods override FilterPluginBase::operatorOptions()
- BooleanOperator::operatorOptions in core/
modules/ views/ src/ Plugin/ views/ filter/ BooleanOperator.php - Provide a list of options for the default operator form.
- Equality::operatorOptions in core/
modules/ views/ src/ Plugin/ views/ filter/ Equality.php - Provide simple equality operator.
- InOperator::operatorOptions in core/
modules/ views/ src/ Plugin/ views/ filter/ InOperator.php - Build strings from the operators() for 'select' options.
- NumericFilter::operatorOptions in core/
modules/ views/ src/ Plugin/ views/ filter/ NumericFilter.php - Provide a list of all the numeric operators.
- StringFilter::operatorOptions in core/
modules/ views/ src/ Plugin/ views/ filter/ StringFilter.php - Build strings from the operators() for 'select' options.
File
-
core/
modules/ views/ src/ Plugin/ views/ filter/ FilterPluginBase.php, line 345
Class
- FilterPluginBase
- Base class for Views filters handler plugins.
Namespace
Drupal\views\Plugin\views\filterCode
public function operatorOptions() {
return [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.