If you do not have the "help" (core) module installed you get fatal errors after installing this module:
[Tue Oct 25 14:43:30.768661 2022] [php7:notice] [pid 19384] [client 127.0.0.1:50535] Uncaught PHP Exception Symfony\\Component\\Routing\\Exception\\RouteNotFoundException: "Route "help.page" does not exist." at /.../core/lib/Drupal/Core/Routing/RouteProvider.php line 206, referer: https://.../admin/config
I suggest to check for the modules existence before trying to output help-url's.
Please review attached patch.
| Comment | File | Size | Author |
|---|---|---|---|
| config_token-remove-help-dependency.patch | 853 bytes | weseze |
Comments
Comment #4
marcelovaniThanks for pointing out and helping with a patch.
I updated the code to use dependency injection.