You are here

public static function GoogleMaps::getControlPositions in Geolocation Field 8.2

Same name and namespace in other branches
  1. 8.3 modules/geolocation_google_maps/src/Plugin/geolocation/MapProvider/GoogleMaps.php \Drupal\geolocation_google_maps\Plugin\geolocation\MapProvider\GoogleMaps::getControlPositions()

Return available control positions.

Return value

array|false Positions.

Overrides MapProviderBase::getControlPositions

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

File

modules/geolocation_google_maps/src/Plugin/geolocation/MapProvider/GoogleMaps.php, line 84

Class

GoogleMaps
Provides Google Maps.

Namespace

Drupal\geolocation_google_maps\Plugin\geolocation\MapProvider

Code

public static function getControlPositions() {
  return [
    'LEFT_TOP' => t('Left top'),
    'LEFT_CENTER' => t('Left center'),
    'LEFT_BOTTOM' => t('Left bottom'),
    'TOP_LEFT' => t('Top left'),
    'TOP_CENTER' => t('Top center'),
    'TOP_RIGHT' => t('Top right'),
    'RIGHT_TOP' => t('Right top'),
    'RIGHT_CENTER' => t('Right center'),
    'RIGHT_BOTTOM' => t('Right bottom'),
    'BOTTOM_LEFT' => t('Bottom left'),
    'BOTTOM_CENTER' => t('Bottom center'),
    'BOTTOM_RIGHT' => t('Bottom right'),
  ];
}