public function RouteProvider::getRoutesCount in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Routing/RouteProvider.php \Drupal\Core\Routing\RouteProvider::getRoutesCount()
Determines the total amount of routes.
Return value
int
Overrides PagedRouteProviderInterface::getRoutesCount
File
- core/
lib/ Drupal/ Core/ Routing/ RouteProvider.php, line 415 - Contains \Drupal\Core\Routing\RouteProvider.
Class
- RouteProvider
- A Route Provider front-end for all Drupal-stored routes.
Namespace
Drupal\Core\RoutingCode
public function getRoutesCount() {
return $this->connection
->query("SELECT COUNT(*) FROM {" . $this->connection
->escapeTable($this->tableName) . "}")
->fetchField();
}