function LazyRouteCollection::all

Same name in other branches
  1. 10 core/lib/Drupal/Core/Routing/LazyRouteCollection.php \Drupal\Core\Routing\LazyRouteCollection::all()
  2. 11.x core/lib/Drupal/Core/Routing/LazyRouteCollection.php \Drupal\Core\Routing\LazyRouteCollection::all()

Returns all routes in this collection.

Return value

\Symfony\Component\Routing\Route[] An array of routes

2 calls to LazyRouteCollection::all()
LazyRouteCollection::count in core/lib/Drupal/Core/Routing/LazyRouteCollection.php
Gets the number of Routes in this collection.
LazyRouteCollection::getIterator in core/lib/Drupal/Core/Routing/LazyRouteCollection.php

File

core/lib/Drupal/Core/Routing/LazyRouteCollection.php, line 47

Class

LazyRouteCollection

Namespace

Drupal\Core\Routing

Code

public function all() {
    return $this->provider
        ->getRoutesByNames(NULL);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.