interface GeoLocatorInterface in GeoIP API 8.2
Interface GeoLocatorInterface.
Hierarchy
- interface \Drupal\geoip\Plugin\GeoLocator\GeoLocatorInterface
Expanded class hierarchy of GeoLocatorInterface
All classes that implement GeoLocatorInterface
1 file declares its use of GeoLocatorInterface
- GeoLocationTest.php in tests/
src/ Unit/ GeoLocationTest.php
File
- src/
Plugin/ GeoLocator/ GeoLocatorInterface.php, line 8
Namespace
Drupal\geoip\Plugin\GeoLocatorView source
interface GeoLocatorInterface {
/**
* Get the plugin's ID.
*
* @return string
* The geolocator ID
*/
public function getId();
/**
* Get the plugin's label.
*
* @return string
* The geolocator label
*/
public function getLabel();
/**
* Get the plugin's description.
*
* @return string
* The geolocator description
*/
public function getDescription();
/**
* Performs geolocation on an address.
*
* @param string $ip_address
* The IP address to geolocate.
*
* @return string
* The geolocated country code, or NULL if not found.
*/
public function geolocate($ip_address);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
GeoLocatorInterface:: |
public | function | Performs geolocation on an address. | 2 |
GeoLocatorInterface:: |
public | function | Get the plugin's description. | 1 |
GeoLocatorInterface:: |
public | function | Get the plugin's ID. | 1 |
GeoLocatorInterface:: |
public | function | Get the plugin's label. | 1 |