You are here

public function ColorizedGmapBlock::getPositionOptions in Colorized google maps block 8

Helper function returns options for map controls positions.

(comes from GMAP api v3 reference).

2 calls to ColorizedGmapBlock::getPositionOptions()
ColorizedGmapBlock::buildFormControlsPosition in src/Plugin/Block/ColorizedGmapBlock.php
Helper function. Create form elements for map controls position settings.
ColorizedGmapBlock::buildFormZoom in src/Plugin/Block/ColorizedGmapBlock.php
Helper function. Create form elements for map zoom settings.

File

src/Plugin/Block/ColorizedGmapBlock.php, line 246

Class

ColorizedGmapBlock
Provides a 'Example: configurable text string' block.

Namespace

Drupal\colorized_gmap\Plugin\Block

Code

public function getPositionOptions() {
  return [
    '1' => 'Top Left',
    '2' => 'Top Center',
    '3' => 'Top Right',
    '4' => 'Left Center',
    '5' => 'Left Top',
    '6' => 'Left Bottom',
    '7' => 'Right Top',
    '8' => 'Right Center',
    '9' => 'Right Bottom',
    '10' => 'Bottom Left',
    '11' => 'Bottom Center',
    '12' => 'Bottom Right',
  ];
}