You are here

MapLinkInterface.php in Address Map (& Directions) Link 8

File

src/MapLinkInterface.php
View 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

Namesort descending Description
MapLinkInterface Defines an interface for Map link plugins.