public function Ip2CountryManager::getRowCount in IP-based Determination of a Visitor's Country 8
Gets the total count of IP ranges in database.
Return value
int Integer count of the number of rows in the ip2country table.
Overrides Ip2CountryManagerInterface::getRowCount
File
- src/
Ip2CountryManager.php, line 297
Class
- Ip2CountryManager
- The ip2country.manager service.
Namespace
Drupal\ip2countryCode
public function getRowCount() {
$count = $this->connection
->select('ip2country')
->countQuery()
->execute()
->fetchField();
return (int) $count;
}