
By drupol on
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
The method systemAdminMenuBlockPage
can be found in: web/core/modules/system/src/controller/SystemController.php
There is no web folder at
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.
There is no web folder at
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.
web can be anything you want.
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.
I see it in this directory:
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 -)