public function GeoIpHandlerInterface::regionCode in GeoIP API 7.2
The region code for a given IP.
This will just return the most accurate subdivision if there are multiple levels.
Parameters
string $ip: The ip to resolve.
Return value
string|FALSE The region name or FALSE on failure. Code is always upper case.
2 methods override GeoIpHandlerInterface::regionCode()
- GeoIpHandlerV1::regionCode in src/
GeoIpHandlerV1.php - The region code for a given IP.
- GeoIpHandlerV2::regionCode in src/
GeoIpHandlerV2.php - The region code for a given IP.
File
- src/
GeoIpHandlerInterface.php, line 101 - The GeoIP API Interface.
Class
Namespace
Drupal\geoipCode
public function regionCode($ip = NULL);