You are here

public function ProximityArgument::buildOptionsForm in Geolocation Field 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/views/argument/ProximityArgument.php \Drupal\geolocation\Plugin\views\argument\ProximityArgument::buildOptionsForm()
  2. 8 src/Plugin/views/argument/ProximityArgument.php \Drupal\geolocation\Plugin\views\argument\ProximityArgument::buildOptionsForm()

Provide a form to edit options for this plugin.

Overrides ArgumentPluginBase::buildOptionsForm

2 calls to ProximityArgument::buildOptionsForm()
EntityArgument::buildOptionsForm in src/Plugin/views/argument/EntityArgument.php
Provide a form to edit options for this plugin.
GeocoderArgument::buildOptionsForm in src/Plugin/views/argument/GeocoderArgument.php
Provide a form to edit options for this plugin.
2 methods override ProximityArgument::buildOptionsForm()
EntityArgument::buildOptionsForm in src/Plugin/views/argument/EntityArgument.php
Provide a form to edit options for this plugin.
GeocoderArgument::buildOptionsForm in src/Plugin/views/argument/GeocoderArgument.php
Provide a form to edit options for this plugin.

File

src/Plugin/views/argument/ProximityArgument.php, line 30

Class

ProximityArgument
Argument handler for geolocation proximity.

Namespace

Drupal\geolocation\Plugin\views\argument

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  parent::buildOptionsForm($form, $form_state);
  $form['description']['#markup'] .= $this
    ->t('<br/> Proximity format should be in the following format: <strong>"37.7749295,-122.41941550000001<=5mi"</strong> (defaults to km).');
}