Gets the number of Routes in this collection.
Return value
int The number of routes
File
- drupal/core/vendor/symfony/routing/Symfony/Component/Routing/RouteCollection.php, line 66
Class
- RouteCollection
- A RouteCollection represents a set of Route instances.
Namespace
Symfony\Component\Routing
Code
public function count() {
return count($this->routes);
}