public function RouteSubscriber::alterRoutes in Book access 1.x
Alters existing routes for a specific collection.
Parameters
\Symfony\Component\Routing\RouteCollection $collection: The route collection for adding routes.
Overrides RouteSubscriberBase::alterRoutes
File
- src/
Routing/ RouteSubscriber.php, line 19 - Contains \Drupal\book_access\Routing\RouteSubscriber.
Class
- RouteSubscriber
- Listens to dynamic route events.
Namespace
Drupal\book_access\RoutingCode
public function alterRoutes(RouteCollection $collection) {
/**
* @FIXME
* Parts of your hook_menu_alter() logic should be moved in here. You should NOT
* use this method to define new routes -- read the documentation at
* https://www.drupal.org/node/2122201 to learn how to define dynamic routes --
* but to alter existing ones.
*/
}