You are here

public function Geometry::dump in Geocoder 8.2

Same name in this branch
  1. 8.2 modules/geocoder_geofield/src/Geocoder/Dumper/Geometry.php \Drupal\geocoder_geofield\Geocoder\Dumper\Geometry::dump()
  2. 8.2 modules/geocoder_geofield/src/Plugin/Geocoder/Dumper/Geometry.php \Drupal\geocoder_geofield\Plugin\Geocoder\Dumper\Geometry::dump()
Same name and namespace in other branches
  1. 8.3 modules/geocoder_geofield/src/Plugin/Geocoder/Dumper/Geometry.php \Drupal\geocoder_geofield\Plugin\Geocoder\Dumper\Geometry::dump()

Dumps the argument into a specific format.

Parameters

\Geocoder\Model\Address $address: The address to be formatted.

Return value

string The formatted address.

Overrides DumperBase::dump

File

modules/geocoder_geofield/src/Plugin/Geocoder/Dumper/Geometry.php, line 60

Class

Geometry
Provides a Geometry geocoder dumper plugin.

Namespace

Drupal\geocoder_geofield\Plugin\Geocoder\Dumper

Code

public function dump(Address $address) {
  return json_encode($this->geophp
    ->load(parent::dump($address), 'json'));
}