function RouteProvider::getRoutesCount
Same name in this branch
- 8.9.x core/tests/Drupal/KernelTests/RouteProvider.php \Drupal\KernelTests\RouteProvider::getRoutesCount()
Same name in other branches
- 9 core/lib/Drupal/Core/Routing/RouteProvider.php \Drupal\Core\Routing\RouteProvider::getRoutesCount()
File
-
core/
lib/ Drupal/ Core/ Routing/ RouteProvider.php, line 448
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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.