You are here

public static function Leaflet::getControlPositions in Geolocation Field 8.3

Same name and namespace in other branches
  1. 8.2 modules/geolocation_leaflet/src/Plugin/geolocation/MapProvider/Leaflet.php \Drupal\geolocation_leaflet\Plugin\geolocation\MapProvider\Leaflet::getControlPositions()

Return available control positions.

Return value

array|false Positions.

Overrides MapProviderBase::getControlPositions

2 calls to Leaflet::getControlPositions()
ControlElementBase::getSettingsForm in modules/geolocation_leaflet/src/Plugin/geolocation/MapFeature/ControlElementBase.php
Provide a generic map settings form array.
ControlElementBase::validateSettingsForm in modules/geolocation_leaflet/src/Plugin/geolocation/MapFeature/ControlElementBase.php
Validate Feature Form.

File

modules/geolocation_leaflet/src/Plugin/geolocation/MapProvider/Leaflet.php, line 534

Class

Leaflet
Provides Leaflet maps.

Namespace

Drupal\geolocation_leaflet\Plugin\geolocation\MapProvider

Code

public static function getControlPositions() {
  return [
    'topleft' => t('Top left'),
    'topright' => t('Top right'),
    'bottomleft' => t('Bottom left'),
    'bottomright' => t('Bottom right'),
  ];
}