You are here

public function GeoIpHandlerInterface::countryName in GeoIP API 7.2

Returns the country name 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 Country name or FALSE on failure.

2 methods override GeoIpHandlerInterface::countryName()
GeoIpHandlerV1::countryName in src/GeoIpHandlerV1.php
Returns the country name for a given IP.
GeoIpHandlerV2::countryName in src/GeoIpHandlerV2.php
Returns the country name for a given IP.

File

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

Class

GeoIpHandlerInterface

Namespace

Drupal\geoip

Code

public function countryName($ip = NULL);