You are here

public function LocationBase::getCoordinates in Geolocation Field 8.3

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

Get map location.

Parameters

int $location_option_id: Location option ID.

array $location_option_settings: The current feature settings.

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

Return value

array With content 'lat' => latitude 'lng' => longitude

Overrides LocationInterface::getCoordinates

5 calls to LocationBase::getCoordinates()
FirstRow::getCoordinates in src/Plugin/geolocation/Location/FirstRow.php
Get map location.
ViewsBoundaryArgument::getCoordinates in src/Plugin/geolocation/Location/ViewsBoundaryArgument.php
Get map location.
ViewsEntityArgument::getCoordinates in src/Plugin/geolocation/Location/ViewsEntityArgument.php
Get map location.
ViewsProximityArgument::getCoordinates in src/Plugin/geolocation/Location/ViewsProximityArgument.php
Get map location.
ViewsProximityFilter::getCoordinates in src/Plugin/geolocation/Location/ViewsProximityFilter.php
Get map location.
8 methods override LocationBase::getCoordinates()
FirstRow::getCoordinates in src/Plugin/geolocation/Location/FirstRow.php
Get map location.
FixedCoordinates::getCoordinates in src/Plugin/geolocation/Location/FixedCoordinates.php
Get map location.
FreeGeoIp::getCoordinates in src/Plugin/geolocation/Location/FreeGeoIp.php
Get map location.
IpStack::getCoordinates in src/Plugin/geolocation/Location/IpStack.php
Get map location.
ViewsBoundaryArgument::getCoordinates in src/Plugin/geolocation/Location/ViewsBoundaryArgument.php
Get map location.

... See full list

File

src/LocationBase.php, line 71

Class

LocationBase
Class LocationBase.

Namespace

Drupal\geolocation

Code

public function getCoordinates($center_option_id, array $center_option_settings, $context = NULL) {
  return [];
}