public function GeoLocation::getGeoLocator in GeoIP API 8.2
Gets an instance of the default geolocator plugin.
Return value
\Drupal\geoip\Plugin\GeoLocator\GeoLocatorInterface Instance of the default geolocator plugin.
1 call to GeoLocation::getGeoLocator()
- GeoLocation::geolocate in src/
GeoLocation.php - Geolocate an IP address.
File
- src/
GeoLocation.php, line 70
Class
- GeoLocation
- Service to interact with the default geolocator plugin for geolocation.
Namespace
Drupal\geoipCode
public function getGeoLocator() {
return $this->geoLocatorManager
->createInstance($this->config
->get('plugin_id'));
}