As commented in https://drupal.org/node/2045931#comment-7697279 instead of replacing all module_invoke() function calls with \Drupal::moduleHandler()->invoke() we should see how can the ModuleHandler be injected in each case.

This issue is part of #2045921: Replace all module_invoke() deprecated function calls.

Meta Issue.
#1916134: Remove module_* deprecated functions

Comments

juanolalla’s picture

Assigned: Unassigned » juanolalla

I'm doing it

juanolalla’s picture

Status: Active » Needs review
StatusFileSize
new9.45 KB

I upload the patch.

Status: Needs review » Needs work

The last submitted patch, replace_deprecated_module_invoke-2055333-2.patch, failed testing.

juanolalla’s picture

Status: Needs work » Needs review
StatusFileSize
new4.73 KB
new5.72 KB

I didn't realize that the three controllers already have ModuleHandler injected extending EntityFormController. I upload the patch fixing it.

Status: Needs review » Needs work

The last submitted patch, replace_deprecated_module_invoke-2055333-4.patch, failed testing.

juanolalla’s picture

Status: Needs work » Needs review
jhedstrom’s picture

Issue summary: View changes
Status: Needs review » Needs work
Issue tags: +Needs reroll

Patch no longer applies.

jacob.embree’s picture

Status: Needs work » Fixed
Issue tags: -Needs reroll

This issue is fixed. module_invoke() no longer appears in core.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.