I want to be able to add new links for existing routes by just using the theme instead of writing an extra custom module.
I wanted to simply add a register link to the account menu, reusing the existing user.register route, but it only seemed to work if I created a module with a mymodule.links.menu.yml for it and didn't work with mytheme.links.menu.yml. I was hoping themes had a little more power in D8 for these types of trivial changes. Keeping them in a generic custom module always seems a bit tacky.
Comments
Comment #2
frankcarey commentedComment #3
cilefen commentedThis should be postponed on #474684: Allow themes to declare dependencies on modules because a theme creating links would depend on the modules creating the routes.
Comment #9
chris matthews commented