You are here

protected function GoogleMapsBusiness::getHandler in Geocoder 8.3

Returns the provider handler.

Return value

\Geocoder\Provider\Provider|\Drupal\geocoder_geofield\Geocoder\Provider\GeometryProviderInterface The provider plugin.

Throws

\ReflectionException

Overrides ProviderUsingHandlerBase::getHandler

File

src/Plugin/Geocoder/Provider/GoogleMapsBusiness.php, line 29

Class

GoogleMapsBusiness
Geocoder provider plugin for Google Maps for Business.

Namespace

Drupal\geocoder\Plugin\Geocoder\Provider

Code

protected function getHandler() {
  if ($this->handler === NULL) {
    $this->handler = GoogleMaps::business($this->httpAdapter, $this->configuration['clientId'], $this->configuration['privateKey'], $this->configuration['region'], $this->configuration['apiKey'], $this->configuration['channel']);
  }
  return $this->handler;
}