You are here

public static function Yandex::getControlPositions in Geolocation Field 8.3

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

Return available control positions.

Return value

array|false Positions.

Overrides MapProviderBase::getControlPositions

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

File

modules/geolocation_yandex/src/Plugin/geolocation/MapProvider/Yandex.php, line 160

Class

Yandex
Provides Yandex Maps API.

Namespace

Drupal\geolocation_yandex\Plugin\geolocation\MapProvider

Code

public static function getControlPositions() {
  return [
    'top' => t('Top'),
    'right' => t('Right'),
    'left' => t('Left'),
    'bottom' => t('Bottom'),
  ];
}