You are here

public function Range::adminSummary in Range 8

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

Display the filter on the administrative summary

Overrides FilterPluginBase::adminSummary

File

src/Plugin/views/filter/Range.php, line 115

Class

Range
Range views filter.

Namespace

Drupal\range\Plugin\views\filter

Code

public function adminSummary() {
  if ($this
    ->isAGroup()) {
    return $this
      ->t('grouped');
  }
  if (!empty($this->options['exposed'])) {
    return $this
      ->t('exposed');
  }
  $options = $this
    ->operatorOptions('short');
  return $options[$this->operator] . ' ' . $this->value;
}