You are here

protected function GeofieldProximityFilter::exposedSummary in Geofield 8

1 call to GeofieldProximityFilter::exposedSummary()
GeofieldProximityFilter::valueForm in src/Plugin/views/filter/GeofieldProximityFilter.php
Provide a simple textfield for equality

File

src/Plugin/views/filter/GeofieldProximityFilter.php, line 540

Class

GeofieldProximityFilter
Field handler to filter Geofields by proximity.

Namespace

Drupal\geofield\Plugin\views\filter

Code

protected function exposedSummary() {
  try {
    $output = [
      '#type' => 'html_tag',
      '#tag' => 'div',
      "#value" => $this->sourcePlugin
        ->getPluginDefinition()['description'],
      '#weight' => -100,
      "#attributes" => [
        'class' => [
          'proximity-filter-summary',
        ],
      ],
    ];
    return $output;
  } catch (\Exception $e) {
    watchdog_exception('geofield', $e);
    return NULL;
  }
}