protected function BoundaryFilter::defineOptions in Geolocation Field 8
Same name and namespace in other branches
- 8.3 src/Plugin/views/filter/BoundaryFilter.php \Drupal\geolocation\Plugin\views\filter\BoundaryFilter::defineOptions()
- 8.2 src/Plugin/views/filter/BoundaryFilter.php \Drupal\geolocation\Plugin\views\filter\BoundaryFilter::defineOptions()
Information about options for all kinds of purposes will be held here.
'option_name' => array(
- 'default' => default value,
- 'contains' => (optional) array of items this contains, with its own
defaults, etc. If contains is set, the default will be ignored and
assumed to be array().
),
Return value
array Returns the options of this handler/plugin.
Overrides FilterPluginBase::defineOptions
File
- src/
Plugin/ views/ filter/ BoundaryFilter.php, line 81
Class
- BoundaryFilter
- Filter handler for search keywords.
Namespace
Drupal\geolocation\Plugin\views\filterCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['expose']['contains']['input_by_geocoding_widget'] = [
'default' => FALSE,
];
$options['expose']['contains']['geocoder_plugin_settings'] = [
'default' => [
'plugin_id' => '',
'settings' => [],
],
];
return $options;
}