You are here

public function LocationBase::getAvailableLocationOptions in Geolocation Field 8.2

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

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

Parameters

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

Return value

array Available location options indexed by ID.

Overrides LocationInterface::getAvailableLocationOptions

5 methods override LocationBase::getAvailableLocationOptions()
FirstRow::getAvailableLocationOptions in src/Plugin/geolocation/Location/FirstRow.php
For one Location (i.e. boundary filter), return all options (all filters).
ViewsBoundaryArgument::getAvailableLocationOptions in src/Plugin/geolocation/Location/ViewsBoundaryArgument.php
For one Location (i.e. boundary filter), return all options (all filters).
ViewsEntityArgument::getAvailableLocationOptions in src/Plugin/geolocation/Location/ViewsEntityArgument.php
For one Location (i.e. boundary filter), return all options (all filters).
ViewsProximityArgument::getAvailableLocationOptions in src/Plugin/geolocation/Location/ViewsProximityArgument.php
For one Location (i.e. boundary filter), return all options (all filters).
ViewsProximityFilter::getAvailableLocationOptions in src/Plugin/geolocation/Location/ViewsProximityFilter.php
For one Location (i.e. boundary filter), return all options (all filters).

File

src/LocationBase.php, line 62

Class

LocationBase
Class LocationBase.

Namespace

Drupal\geolocation

Code

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