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.
drupal_container() is deprecated, and all calls in the file module need to be replaced with Drupal::service(), except for where the module_handler service is requested, which needs to be replaced with Drupal::moduleHandler() (see #1957154: Replace calls to drupal_container()->get('module_handler') service with Drupal::moduleHandler())
Comment | File | Size | Author |
---|---|---|---|
#1 | 2011084-file-drupal-service-1.patch | 424 bytes | jlandfried |
Comments
Comment #1
jlandfried CreditAttribution: jlandfried commentedComment #2
ddrozdik CreditAttribution: ddrozdik commentedlooks good, if result of testing will be green - RTBC
Comment #3
ddrozdik CreditAttribution: ddrozdik commented#1: 2011084-file-drupal-service-1.patch queued for re-testing.
Comment #4
ddrozdik CreditAttribution: ddrozdik commentedComment #5
webchickCommitted and pushed to 8.x. Thanks!
Comment #6
ddrozdik CreditAttribution: ddrozdik commented