I have a custom module that I have a systemAdminMenuBlockPage in that I'd like to link to various content administration Views pages from. I basically have a custom Configuration menu item doing this using custom_module.routing.yml and custom_module.links.menu.yml like:

Configuration > My Site > Content Administration Views

On this page I'd just like to create menu items that link to individual Views displays. What I haven't been able to figure out is what the custom_module.routing.yml entries should look like. Do I need to create a whole ShowCustomViewsPages.php controller like:

_controller: '\Drupal\custom_module\Controller\ShowCustomViewsPages::siteResources'

and show my Views from there or is there an easier way to link directly to the View's route from the routing.yml file?

Thank you

  • 1
    Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
    – Community Bot
    Feb 3 at 18:11


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.