You are here

public function FormatterInterface::format in Geocoder 8.3

Same name and namespace in other branches
  1. 8.2 src/Plugin/Geocoder/Formatter/FormatterInterface.php \Drupal\geocoder\Plugin\Geocoder\Formatter\FormatterInterface::format()

Dumps the argument into a specific format.

Parameters

\Geocoder\Model\Address $address: The address to be formatted. This (might but) is not referring to Geocoder\Location for backport compatibility with 8.x-2.x version. Third party modules might have already created their own custom formatters.

Return value

string The formatted address.

1 method overrides FormatterInterface::format()
FormattedAddress::format in src/Plugin/Geocoder/Formatter/FormattedAddress.php
Dumps the argument into a specific format.

File

src/Plugin/Geocoder/Formatter/FormatterInterface.php, line 27

Class

FormatterInterface
Provides an interface for geocoder formatter plugins.

Namespace

Drupal\geocoder\Plugin\Geocoder\Formatter

Code

public function format(Address $address);