You are here

public function OpenCage::init in Geocoder 7.2

@inheritdoc

Overrides GeocoderPlugin::init

File

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

Class

OpenCage
Class OpenCage.

Namespace

Drupal\geocoder\Plugin\Geocoder\Provider

Code

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