You are here

public function Equality::operatorOptions in Drupal 8

Same name and namespace in other branches
  1. 9 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 22

Class

Equality
Simple filter to handle equal to / not equal to filters

Namespace

Drupal\views\Plugin\views\filter

Code

public function operatorOptions() {
  return [
    '=' => $this
      ->t('Is equal to'),
    '!=' => $this
      ->t('Is not equal to'),
  ];
}