You are here

public function Proximity::adminSummary in CiviCRM Entity 8.3

Display the filter on the administrative summary

Overrides FilterPluginBase::adminSummary

File

src/Plugin/views/filter/Proximity.php, line 87

Class

Proximity
Filter handler for proximity.

Namespace

Drupal\civicrm_entity\Plugin\views\filter

Code

public function adminSummary() {
  if (!empty($this->options['exposed'])) {
    return $this
      ->t('exposed');
  }
  return $this
    ->t('within @postal_code', [
    '@postal_code' => $this->value['value'],
  ]);
}