You are here

public function Equality::operatorOptions in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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 27
Contains \Drupal\views\Plugin\views\filter\Equality.

Class

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

Namespace

Drupal\views\Plugin\views\filter

Code

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