You are here

interface MapLinkInterface in Address Map (& Directions) Link 8

Defines an interface for Map link plugins.

Hierarchy

Expanded class hierarchy of MapLinkInterface

All classes that implement MapLinkInterface

File

src/MapLinkInterface.php, line 11

Namespace

Drupal\address_map_link
View source
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);

}

Members

Namesort descending Modifiers Type Description Overrides
MapLinkInterface::getAddressUrl public function Gets the map link url from an address. 1
MapLinkInterface::getName public function Return the name of the map link plugin. 1
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2