You are here

public function Geonames::init in Geocoder 7.2

@inheritdoc

Overrides GeocoderPlugin::init

File

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

Class

Geonames
Class Geonames.

Namespace

Drupal\geocoder\Plugin\Geocoder\Provider

Code

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