Problem
Drupal calls should be avoided in classes that are able to use dependency injection

Proposed resolution
Adapt class (service) to inject dependency

CommentFileSizeAuthor
#2 context_dependecy_injection_fix.patch5.06 KBnkoporec

Comments

nkoporec created an issue. See original summary.

nkoporec’s picture

Status: Active » Needs review
StatusFileSize
new5.06 KB

Created a patch to use dependency injection.Please review!

icurk’s picture

Status: Needs review » Reviewed & tested by the community

  • boshtian committed ee5502e on 8.x-4.x authored by nkoporec
    Issue #2948331 by nkoporec, icurk: Use dependency injection in Blocks...
boshtian’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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