public function TrafficRegistry::countUrls in URLs queuer 8
Count the number of URLs in the registry.
Return value
int Number of URLs currently in the registry.
Overrides TrafficRegistryInterface::countUrls
File
- src/
TrafficRegistry.php, line 92
Class
- TrafficRegistry
- Provides a database-driven traffic registry with URLs and tags.
Namespace
Drupal\purge_queuer_urlCode
public function countUrls() {
if (!$this->connection
->schema()
->tableExists('purge_queuer_url')) {
return 0;
}
return (int) $this->connection
->select('purge_queuer_url')
->fields(NULL, [
'field',
])
->countQuery()
->execute()
->fetchField();
}