function LazyRouteCollection::count

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

Gets the number of Routes in this collection.

Return value

int The number of routes

File

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

Class

LazyRouteCollection

Namespace

Drupal\Core\Routing

Code

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

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