function StaticRouteDiscoveryBase::collectRoutes

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Routing/StaticRouteDiscoveryBase.php \Drupal\Core\Routing\StaticRouteDiscoveryBase::collectRoutes()

Creates a collection of routes to add to the route builder.

Return value

iterable<int, \Symfony\Component\Routing\RouteCollection> The routes.

File

core/lib/Drupal/Core/Routing/StaticRouteDiscoveryBase.php, line 23

Class

StaticRouteDiscoveryBase
Provides functionality for a class subscribed to RoutingEvents::STATIC.

Namespace

Drupal\Core\Routing

Code

abstract protected function collectRoutes() : iterable;

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