You are here

public function MarkerZoomByAnchor::getSettingsForm in Geolocation Field 8.3

Same name and namespace in other branches
  1. 8.2 modules/geolocation_google_maps/src/Plugin/geolocation/MapFeature/MarkerZoomByAnchor.php \Drupal\geolocation_google_maps\Plugin\geolocation\MapFeature\MarkerZoomByAnchor::getSettingsForm()

Provide a generic map settings form array.

Parameters

array $settings: The current map settings.

array $parents: Form specific optional prefix.

Return value

array A form array to be integrated in whatever.

Overrides MapFeatureBase::getSettingsForm

File

modules/geolocation_google_maps/src/Plugin/geolocation/MapFeature/MarkerZoomByAnchor.php, line 32

Class

MarkerZoomByAnchor
Provides Google Maps.

Namespace

Drupal\geolocation_google_maps\Plugin\geolocation\MapFeature

Code

public function getSettingsForm(array $settings, array $parents) {
  $form['marker_zoom_anchor_id'] = [
    '#type' => 'textfield',
    '#title' => $this
      ->t('Anchor ID'),
    '#description' => $this
      ->t('Clicking a link with the class "geolocation-marker-zoom" and this anchor target will zoom to the specific marker and animate it. Tokens supported.'),
    '#default_value' => $settings['marker_zoom_anchor_id'],
  ];
  return $form;
}