public function RealEstate::getLocation in Styled Google Map 8.2
Gets the Real estate location.
Return value
array Location of the Real estate as array('lat' => ..., 'lon' => ...).
Overrides RealEstateInterface::getLocation
File
- modules/
demo/ src/ Entity/ RealEstate.php, line 103
Class
- RealEstate
- Defines the Real estate entity.
Namespace
Drupal\styled_google_map_demo\EntityCode
public function getLocation() {
return [
'lat' => $this
->get('location')->lat,
'lon' => $this
->get('location')->lon,
];
}