public function GeoIpHandlerV2::record in GeoIP API 7.2
Returns the record matching the ip.
Parameters
string $ip: The ip to process.
Return value
\GeoIp2\Model\AbstractModel The record object found for this IP.
File
- src/
GeoIpHandlerV2.php, line 87 - The GeoIP API handler for version 2.
Class
Namespace
Drupal\geoipCode
public function record($ip = NULL) {
$ip = empty($ip) ? ip_address() : $ip;
return $this
->getReader()
->{$this->readMethod}($ip);
}