You are here

public function IpInfoDb::init in Geocoder 7.2

@inheritdoc

Overrides GeocoderPlugin::init

File

src/Plugin/Geocoder/Provider/IpInfoDb.php, line 32
The IpInfoDb plugin.

Class

IpInfoDb
Class IpInfoDb.

Namespace

Drupal\geocoder\Plugin\Geocoder\Provider

Code

public function init() {
  $configuration = $this
    ->getConfiguration();
  $this
    ->setHandler(new \Geocoder\Provider\IpInfoDb($this
    ->getAdapter(), $configuration['apiKey']));
  return parent::init();
}