You are here

public function GeocoderBase::getOptionsForm in Geolocation Field 8.2

Same name and namespace in other branches
  1. 8.3 src/GeocoderBase.php \Drupal\geolocation\GeocoderBase::getOptionsForm()
  2. 8 src/GeocoderBase.php \Drupal\geolocation\GeocoderBase::getOptionsForm()

Return additional options form.

Return value

array Options form.

Overrides GeocoderInterface::getOptionsForm

2 calls to GeocoderBase::getOptionsForm()
GoogleGeocoderBase::getOptionsForm in modules/geolocation_google_maps/src/GoogleGeocoderBase.php
Return additional options form.
Photon::getOptionsForm in modules/geolocation_leaflet/src/Plugin/geolocation/Geocoder/Photon.php
Return additional options form.
2 methods override GeocoderBase::getOptionsForm()
GoogleGeocoderBase::getOptionsForm in modules/geolocation_google_maps/src/GoogleGeocoderBase.php
Return additional options form.
Photon::getOptionsForm in modules/geolocation_leaflet/src/Plugin/geolocation/Geocoder/Photon.php
Return additional options form.

File

src/GeocoderBase.php, line 79

Class

GeocoderBase
Class GeocoderBase.

Namespace

Drupal\geolocation

Code

public function getOptionsForm() {
  $settings = $this
    ->getSettings();
  return [
    'label' => [
      '#type' => 'textfield',
      '#title' => $this
        ->t('Label'),
      '#default_value' => $settings['label'],
      '#size' => 15,
    ],
    'description' => [
      '#type' => 'textfield',
      '#title' => $this
        ->t('Description'),
      '#default_value' => $settings['description'],
      '#size' => 25,
    ],
  ];
}