MapLinkInterface.php in Address Map (& Directions) Link 8
Namespace
Drupal\address_map_linkFile
src/MapLinkInterface.phpView source
<?php
namespace Drupal\address_map_link;
use Drupal\address\AddressInterface;
use Drupal\Component\Plugin\PluginInspectionInterface;
/**
* Defines an interface for Map link plugins.
*/
interface MapLinkInterface extends PluginInspectionInterface {
/**
* Return the name of the map link plugin.
*
* @return string
* The name of the MapLink plugin.
*/
public function getName();
/**
* Gets the map link url from an address.
*
* @param \Drupal\address\AddressInterface $address
* The address.
*
* @return \Drupal\Core\Url
* The Url.
*/
public function getAddressUrl(AddressInterface $address);
}
Interfaces
Name | Description |
---|---|
MapLinkInterface | Defines an interface for Map link plugins. |