You are here

protected function GeocoderArgument::defineOptions in Geolocation Field 8.3

Same name and namespace in other branches
  1. 8.2 src/Plugin/views/argument/GeocoderArgument.php \Drupal\geolocation\Plugin\views\argument\GeocoderArgument::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 ArgumentPluginBase::defineOptions

File

src/Plugin/views/argument/GeocoderArgument.php, line 60

Class

GeocoderArgument
Argument handler for geolocation.

Namespace

Drupal\geolocation\Plugin\views\argument

Code

protected function defineOptions() {
  return array_replace_recursive(parent::defineOptions(), [
    'geocoder' => [
      'default' => 'google_geocoding_api',
    ],
    'geocoder_settings' => [
      'default' => [],
    ],
  ]);
}