You are here

public function LocationInputBase::getAvailableLocationInputOptions in Geolocation Field 8.2

Same name and namespace in other branches
  1. 8.3 src/LocationInputBase.php \Drupal\geolocation\LocationInputBase::getAvailableLocationInputOptions()

For one LocationInput (i.e. boundary filter), return all options.

Parameters

mixed $context: Context like field formatter, field widget or view.

Return value

array Available center options indexed by ID.

Overrides LocationInputInterface::getAvailableLocationInputOptions

1 method overrides LocationInputBase::getAvailableLocationInputOptions()
Location::getAvailableLocationInputOptions in src/Plugin/geolocation/LocationInput/Location.php
For one LocationInput (i.e. boundary filter), return all options.

File

src/LocationInputBase.php, line 60

Class

LocationInputBase
Class LocationInputBase.

Namespace

Drupal\geolocation

Code

public function getAvailableLocationInputOptions($context) {
  return [
    $this
      ->getPluginId() => $this
      ->getPluginDefinition()['name'],
  ];
}