drupal_container() is deprecated, and all calls in the tour 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()

#2 tour-2014031-2.patch2.77 KBkgoel
PASSED: [[SimpleTest]]: [MySQL] 55,833 pass(es). View
Members fund testing for the Drupal project. Drupal Association Learn more


kgoel’s picture

Assigned: Unassigned » kgoel
kgoel’s picture

Status: Active » Needs review
2.77 KB
PASSED: [[SimpleTest]]: [MySQL] 55,833 pass(es). View
dcam’s picture

Status: Needs review » Reviewed & tested by the community

#2 looks good. It replaces all instances of drupal_container() in the tour module.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.x. Thanks!

ddrozdik’s picture

Status: Fixed » Closed (fixed)