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

This task a part of #2001206: Replace drupal_container() with Drupal::service()

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kgoel’s picture

Assigned: Unassigned » kgoel
kgoel’s picture

Status: Active » Needs review
FileSize
3.61 KB

Status: Needs review » Needs work

The last submitted patch, shortcut-2014011-2.patch, failed testing.

kgoel’s picture

Status: Needs work » Needs review
FileSize
1.3 KB
3.62 KB
dcam’s picture

Status: Needs review » Reviewed & tested by the community

#4 looks good. All instances of drupal_container() in the shortcut module have been changed.

drupee’s picture

#4: shortcut-2014011-4.patch queued for re-testing.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.x. Thanks!

ddrozdik’s picture

Status: Fixed » Closed (fixed)