public function ChainRouteCollection::count in Zircon Profile 8
Same name and namespace in other branches
- 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
Namespace
Symfony\Cmf\Component\RoutingCode
public function count() {
  $count = 0;
  foreach ($this->routeCollections as $routeCollection) {
    $count += $routeCollection
      ->count();
  }
  return $count;
}