protected function ProviderUsingHandlerBase::doGeocode in Geocoder 8.3
Same name and namespace in other branches
- 8.2 src/ProviderUsingHandlerBase.php \Drupal\geocoder\ProviderUsingHandlerBase::doGeocode()
Throws
\ReflectionException
\Geocoder\Exception\Exception
Overrides ProviderBase::doGeocode
1 call to ProviderUsingHandlerBase::doGeocode()
- ConfigurableProviderUsingHandlerWithAdapterBase::doGeocode in src/
ConfigurableProviderUsingHandlerWithAdapterBase.php - Performs the geocoding.
1 method overrides ProviderUsingHandlerBase::doGeocode()
- ConfigurableProviderUsingHandlerWithAdapterBase::doGeocode in src/
ConfigurableProviderUsingHandlerWithAdapterBase.php - Performs the geocoding.
File
- src/
ProviderUsingHandlerBase.php, line 52
Class
- ProviderUsingHandlerBase
- Provides a base class for providers using handlers.
Namespace
Drupal\geocoderCode
protected function doGeocode($source) {
// In case of a Geocoder Provider returning a \Geocoder\Collection.
if ($this
->getHandler() instanceof Provider) {
return $this
->getHandlerWrapper()
->geocode($source);
}
// In case of a GeoPHP Geometry Provider returning a \Geometry.
if ($this
->getHandler() instanceof GeometryProviderInterface) {
return $this
->getHandler()
->geocode($source);
}
return NULL;
}