public function HereWeGoMaps::getAddressUrl in Address Map (& Directions) Link 8
Gets the map link url from an address.
Parameters
\Drupal\address\AddressInterface $address: The address.
Return value
\Drupal\Core\Url The Url.
Overrides MapLinkBase::getAddressUrl
File
- src/
Plugin/ MapLink/ HereWeGoMaps.php, line 28
Class
- HereWeGoMaps
- Provides a HERE WeGo maps link type.
Namespace
Drupal\address_map_link\Plugin\MapLinkCode
public function getAddressUrl(AddressInterface $address) {
return Url::fromUri('https://wego.here.com/directions/drive//' . $this
->addressString($address));
}