function Equality::operatorOptions

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()
  2. 8.9.x core/modules/views/src/Plugin/views/filter/Equality.php \Drupal\views\Plugin\views\filter\Equality::operatorOptions()
  3. 10 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\filter

Code

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.