You are here

public function GeoIpHandlerInterface::continentCode in GeoIP API 7.2

Returns the continent code for a given IP.

Defaults to using the current user's IP if not specified.

Parameters

string $ip: The ip to resolve.

Return value

string|FALSE Continent code or FALSE on failure. Code is always upper case.

2 methods override GeoIpHandlerInterface::continentCode()
GeoIpHandlerV1::continentCode in src/GeoIpHandlerV1.php
Returns the continent code for a given IP.
GeoIpHandlerV2::continentCode in src/GeoIpHandlerV2.php
Returns the continent code for a given IP.

File

src/GeoIpHandlerInterface.php, line 45
The GeoIP API Interface.

Class

GeoIpHandlerInterface

Namespace

Drupal\geoip

Code

public function continentCode($ip = NULL);