public function GoogleGeocodingAPI::getOptionsForm in Geolocation Field 8.3
Return additional options form.
Return value
array Options form.
Overrides GoogleGeocoderBase::getOptionsForm
File
- modules/
geolocation_google_maps/ src/ Plugin/ geolocation/ Geocoder/ GoogleGeocodingAPI.php, line 42
Class
- GoogleGeocodingAPI
- Provides the Google Geocoding API.
Namespace
Drupal\geolocation_google_maps\Plugin\geolocation\GeocoderCode
public function getOptionsForm() {
$settings = $this
->getSettings();
$form = parent::getOptionsForm();
$form += [
'region' => [
'#type' => 'textfield',
'#title' => $this
->t('Region'),
'#description' => $this
->t('Make a region biasing by providing a ccTLD country code. See <a href="https://developers.google.com/maps/documentation/geocoding/intro#RegionCodes">Region Biasing</a>'),
'#default_value' => $settings['region'],
'#size' => 5,
],
];
return $form;
}