You are here

FormatterInterface.php in Geocoder 8.2

Same filename and directory in other branches
  1. 8.3 src/Plugin/Geocoder/Formatter/FormatterInterface.php

File

src/Plugin/Geocoder/Formatter/FormatterInterface.php
View source
<?php

namespace Drupal\geocoder\Plugin\Geocoder\Formatter;

use Geocoder\Model\Address;

/**
 * Provides an interface for geocoder formatter plugins.
 *
 * Formatters are plugins that can reformat address components into custom
 * formatted string.
 */
interface FormatterInterface {

  /**
   * Dumps the argument into a specific format.
   *
   * @param \Geocoder\Model\Address $address
   *   The address to be formatted.
   *
   * @return string
   *   The formatted address.
   */
  public function format(Address $address);

}

Interfaces

Namesort descending Description
FormatterInterface Provides an interface for geocoder formatter plugins.