GeolocatorController
abstract class GeolocatorController extends Controller implements GeolocatorControllerInterface (View source)
Properties
protected Geolocator | $geolocator | ||
private Record|null | $configurationRecord |
Methods
getFileRecord(string $file)
Get the path to a geolocator file.
getConfigurationRecord()
No description
bool
hasConfigurationForm()
Does this geolocator library has a configuration form?
renderConfigurationForm()
Render the configuration form.
array
saveConfigurationForm(array $configuration, ParameterBag $data, ErrorList $error)
Save the configuration form.
geolocateIPAddress(AddressInterface $address)
Geolocate an IP address.
performGeolocation(AddressInterface $address)
Geolocate an IP address.
Details
__construct(Geolocator $geolocator)
No description
protected Record
getFileRecord(string $file)
Get the path to a geolocator file.
protected Record
getConfigurationRecord()
No description
bool
hasConfigurationForm()
Does this geolocator library has a configuration form?
renderConfigurationForm()
Render the configuration form.
array
saveConfigurationForm(array $configuration, ParameterBag $data, ErrorList $error)
Save the configuration form.
GeolocationResult
geolocateIPAddress(AddressInterface $address)
Geolocate an IP address.
abstract protected GeolocationResult
performGeolocation(AddressInterface $address)
Geolocate an IP address.