public function RouteProviderLazyBuilder::getRoutesCount

public RouteProviderLazyBuilder::getRoutesCount()

Determines the total amount of routes.

Return value

int

Overrides PagedRouteProviderInterface::getRoutesCount

File

core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php, line 121

Class

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

Namespace

Drupal\Core\Routing

Code

public function getRoutesCount() {
  return $this->getRouteProvider()->getRoutesCount();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Routing!RouteProviderLazyBuilder.php/function/RouteProviderLazyBuilder::getRoutesCount/8.1.x