Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
No route exists to resolve update.php to a path. Update.php needs to be able to run outside of Drupal as always but still needs a way to resolve its path within Drupal without the need for globals, such as in the hook_help() within this module.
Proposed resolution
Add a new route "system.update" to system.routing.yml with only a path to "/core/update.php".
Comment | File | Size | Author |
---|---|---|---|
#1 | drupal8.system-module.2109553-1.patch | 412 bytes | lostkangaroo |
Comments
Comment #1
lostkangaroo CreditAttribution: lostkangaroo commentedInitial manual tests show that this works as intended.
Comment #2
neclimdulPretty straight forward. We could use url() to build this but the services backing that are deprecated so this is how we can build these urls using Drupal::url()
reference issue for updating system_help() #2091363: Update hook_help for System module
Comment #3
webchickCommitted and pushed to 8.x. Thanks!