You are here

public function ChainRouteCollection::count in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony-cmf/routing/ChainRouteCollection.php \Symfony\Cmf\Component\Routing\ChainRouteCollection::count()

Gets the number of Routes in this collection.

Return value

int The number of routes

Overrides RouteCollection::count

File

vendor/symfony-cmf/routing/ChainRouteCollection.php, line 56

Class

ChainRouteCollection

Namespace

Symfony\Cmf\Component\Routing

Code

public function count() {
  $count = 0;
  foreach ($this->routeCollections as $routeCollection) {
    $count += $routeCollection
      ->count();
  }
  return $count;
}