function 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\RoutingCode
abstract protected function collectRoutes() : iterable;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.