drupal_container() is deprecated, and all calls in the taxonomy 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())
This task a part of #2001206: Replace drupal_container() with Drupal::service()
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | taxonomy-2014025-3.patch | 1.49 KB | kgoel |
| #2 | taxonomy-2014025-2.patch | 1.5 KB | kgoel |
Comments
Comment #1
kgoel commentedComment #2
kgoel commentedComment #3
kgoel commentedReplaced Drupal::service('request') with \Drupal::request()
Comment #4
dcam commented#3 looks good to me. I didn't find any additional uses of drupal_container() in the taxonomy module.
Comment #5
webchickCommitted and pushed to 8.x. Thanks!
Comment #6
ddrozdik commented