You are here

public function FilterPluginBase::operatorOptions in Drupal 8

Same name and namespace in other branches
  1. 9 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. Only exposed filters with operators available can be converted into groups.
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. Should be overridden by classes that don't override operatorForm
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 312

Class

FilterPluginBase
Base class for Views filters handler plugins.

Namespace

Drupal\views\Plugin\views\filter

Code

public function operatorOptions() {
  return [];
}