public function LocationInterface::getCoordinates in Geolocation Field 8.3
Same name and namespace in other branches
- 8.2 src/LocationInterface.php \Drupal\geolocation\LocationInterface::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
1 method overrides LocationInterface::getCoordinates()
- LocationBase::getCoordinates in src/
LocationBase.php - Get map location.
File
- src/
LocationInterface.php, line 72
Class
- LocationInterface
- Defines an interface for geolocation Location plugins.
Namespace
Drupal\geolocationCode
public function getCoordinates($location_option_id, array $location_option_settings, $context = NULL);