Hi,

I have started creating an example module, at this moment is basically a Hello world.

My intention is to include CodeIgniter views in the module's page. I also want to create a menu in Drupal's admin panel, with links to all the CI controllers.

I know I need to create a .routing.yml file with all the routes, but I have managed to do this dynamically in a PHP class, inside module_name/src/Routing/Routes.php with RouteCollection, and adding a route_callback in the .routing.yml pointing to my class.

However, I'm not capable of doing the same with the file .links.menu.yml, so I can't create the links in the admin panel. I want it to be dynamic in case CI controllers are removed or added.

I have searched for this but haven't found anything.

Tnahk you.