public function ProximityFilter::groupForm in Geolocation Field 8.3
Same name and namespace in other branches
- 8.2 src/Plugin/views/filter/ProximityFilter.php \Drupal\geolocation\Plugin\views\filter\ProximityFilter::groupForm()
Build a form containing a group of operator | values to apply as a single filter.
Overrides FilterPluginBase::groupForm
File
- src/
Plugin/ views/ filter/ ProximityFilter.php, line 100
Class
- ProximityFilter
- Filter handler for search keywords.
Namespace
Drupal\geolocation\Plugin\views\filterCode
public function groupForm(&$form, FormStateInterface $form_state) {
parent::groupForm($form, $form_state);
$center_form = $this->locationInputManager
->getForm($this->options['location_input'], $this, empty($this->value['center']) ? NULL : $this->value['center']);
if (!empty($center_form)) {
$form['center'] = $center_form;
}
}