You are here

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

Returns an array of resources loaded to build this collection.

Return value

ResourceInterface[] An array of resources

Overrides RouteCollection::getResources

File

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

Class

ChainRouteCollection

Namespace

Symfony\Cmf\Component\Routing

Code

public function getResources() {
  $resources = array();
  foreach ($this->routeCollections as $routeCollection) {
    $resources = array_merge($resources, $routeCollection
      ->getResources());
  }
  return array_unique($resources);
}