You are here

public function ChainRouteCollection::all 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::all()

Returns all routes in this collection.

Return value

Route[] An array of routes

Overrides RouteCollection::all

1 call to ChainRouteCollection::all()
ChainRouteCollection::getIterator in vendor/symfony-cmf/routing/ChainRouteCollection.php
Gets the current RouteCollection as an Iterator that includes all routes.

File

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

Class

ChainRouteCollection

Namespace

Symfony\Cmf\Component\Routing

Code

public function all() {
  $routeCollectionAll = new RouteCollection();
  foreach ($this->routeCollections as $routeCollection) {
    $routeCollectionAll
      ->addCollection($routeCollection);
  }
  return $routeCollectionAll
    ->all();
}