Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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!