You are here

public function LazyRouteCollection::count in Drupal 9

Gets the number of Routes in this collection.

Return value

int The number of routes

File

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

Class

LazyRouteCollection

Namespace

Drupal\Core\Routing

Code

public function count() {
  return count($this
    ->all());
}