You are here

public function FontYourFaceWeightFilter::operators in @font-your-face 8.3

Provide simple equality operator.

Overrides StringFilter::operators

File

src/Plugin/views/filter/FontYourFaceWeightFilter.php, line 27

Class

FontYourFaceWeightFilter
Filter handler which allows to search based on font weight.

Namespace

Drupal\fontyourface\Plugin\views\filter

Code

public function operators() {
  return [
    '=' => [
      'title' => $this
        ->t('Is equal to'),
      'short' => $this
        ->t('='),
      'method' => 'opEqual',
      'values' => 1,
    ],
  ];
}