Hello,

I am going thru an existing contributed module's routing.info file. 

Snippet of the code:

example.admin_example:

path: '/admin/example

defaults:

_controller: '/Drupal/system/controller/systemcontroller::systemadminmenublockpage'

.........

I could not find the controller directory in my local site. I am not sure where this directory came from.  Can you please tell me how to find it?

I posted this thread from my cell phone. I am having problem formatting it based on standards.

Thanks!

Comments

mmjvb’s picture

can be found in: web/core/modules/system/src/controller/SystemController.php

drupol’s picture

There is no web folder at root.

I see core folder. Core > modules > system > I was looking for controller folder but I do not see it.

drupol’s picture

There is no web folder at root.

I see core folder. Core > modules > system > I was looking for controller folder but I do not see it.

mmjvb’s picture

No idea how your file system is organized. It refers to wherever the DocumentRoot of your site is pointing to and might even contain the word web. core/modules/system is what you should be looking at, src/Controller should be in there.

drupol’s picture

I see it in this directory: core\modules\system\src\Controller.

I am not sure why routing.yml does not use the complete path. 

Thanks -)