You are here

protected function ProviderUsingHandlerBase::getHandlerWrapper in Geocoder 8.3

Returns the V4 Stateful wrapper.

Return value

\Geocoder\StatefulGeocoder The current handler wrapped in this class.

Throws

\ReflectionException

File

src/ProviderUsingHandlerBase.php, line 100

Class

ProviderUsingHandlerBase
Provides a base class for providers using handlers.

Namespace

Drupal\geocoder

Code

protected function getHandlerWrapper() : StatefulGeocoder {
  if ($this->handlerWrapper === NULL) {
    $this->handlerWrapper = new StatefulGeocoder($this
      ->getHandler(), $this->languageManager
      ->getCurrentLanguage()
      ->getId());
  }
  return $this->handlerWrapper;
}