RouteProvider::getRoutesCount

public RouteProvider::getRoutesCount()

Determines the total amount of routes.

Return value

int

Overrides PagedRouteProviderInterface::getRoutesCount

File

core/lib/Drupal/Core/Routing/RouteProvider.php, line 420

Class

RouteProvider
A Route Provider front-end for all Drupal-stored routes.

Namespace

Drupal\Core\Routing

Code

public function getRoutesCount() {
  return $this->connection->query("SELECT COUNT(*) FROM {" . $this->connection->escapeTable($this->tableName) . "}")->fetchField();
}
doc_Drupal
2016-10-29 09:39:18
Comments
Leave a Comment

Please login to continue.