You are here

public function LocationInputPluginBase::defaultConfiguration in Search API Location 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ConfigurablePluginBase::defaultConfiguration

2 calls to LocationInputPluginBase::defaultConfiguration()
Geocode::defaultConfiguration in modules/search_api_location_geocoder/src/Plugin/search_api_location/location_input/Geocode.php
Gets default configuration for this plugin.
Map::defaultConfiguration in src/Plugin/search_api_location/location_input/Map.php
Gets default configuration for this plugin.
2 methods override LocationInputPluginBase::defaultConfiguration()
Geocode::defaultConfiguration in modules/search_api_location_geocoder/src/Plugin/search_api_location/location_input/Geocode.php
Gets default configuration for this plugin.
Map::defaultConfiguration in src/Plugin/search_api_location/location_input/Map.php
Gets default configuration for this plugin.

File

src/LocationInput/LocationInputPluginBase.php, line 28

Class

LocationInputPluginBase
Defines a base class from which other data type classes may extend.

Namespace

Drupal\search_api_location\LocationInput

Code

public function defaultConfiguration() {
  $configuration = parent::defaultConfiguration();
  $configuration += [
    'radius_type' => 'select',
    'radius_options' => "- -\n5 5 km\n10 10 km\n16.09 10 mi",
    'radius_units' => 'km',
  ];
  return $configuration;
}