FormatterInterface.php in Geocoder 8.2
Same filename and directory in other branches
File
src/Plugin/Geocoder/Formatter/FormatterInterface.phpView 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
Name | Description |
---|---|
FormatterInterface | Provides an interface for geocoder formatter plugins. |