You are here

public function Geometry::__construct in Geocoder 8.3

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

File

modules/geocoder_geofield/src/Geocoder/Dumper/Geometry.php, line 32

Class

Geometry
Dumper.

Namespace

Drupal\geocoder_geofield\Geocoder\Dumper

Code

public function __construct() {
  $this->dumper = \Drupal::service('plugin.manager.geocoder.dumper')
    ->createInstance('geojson');
  $this->geophp = \Drupal::service('geofield.geophp');
}