1

I want to get a list (dump) of routes used?

Example:

/user/register
/user/logout
/custom/route
/node/27/some-description
2

If you are using the Drupal Console, you can use the command :

drupal router:debug

This will print all the routes on your site including routes from core.

The other solution is to use the Devel module and going to "devel/routes".

  • Thanks, does this work with Drupal 7? – JorgeeFG Jun 27 '17 at 14:41
  • @oknate If you take routes as paths to which modules respond, Drupal 7 has routes too; it just changes how they are defined. – kiamlaluno Jun 27 '17 at 18:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.