You are here

protected function Range::operators in Range 8

Same name in this branch
  1. 8 src/Plugin/views/filter/Range.php \Drupal\range\Plugin\views\filter\Range::operators()
  2. 8 src/Plugin/views/argument/Range.php \Drupal\range\Plugin\views\argument\Range::operators()

Define the operators supported for ranges.

2 calls to Range::operators()
Range::adminSummary in src/Plugin/views/argument/Range.php
Provide text for the administrative summary.
Range::query in src/Plugin/views/argument/Range.php
Set up the query for this argument.

File

src/Plugin/views/argument/Range.php, line 113

Class

Range
Range views argument.

Namespace

Drupal\range\Plugin\views\argument

Code

protected function operators() {
  $operators = [
    'within' => [
      'short' => $this
        ->t('contains'),
      'method' => 'opWithin',
    ],
    'not within' => [
      'short' => $this
        ->t('does not contain'),
      'method' => 'opWithin',
    ],
  ];
  return $operators;
}