Problem/Motivation

 204 | WARNING | \Drupal calls should be avoided in classes, use
     |         | dependency injection instead

Proposed resolution

inject the object use Drupal\Core\State\State;

Remaining tasks

User interface changes

API changes

Data model changes

Comments

thalles created an issue. See original summary.

thalles’s picture

Status: Needs work » Needs review
StatusFileSize
new2.05 KB
alex_optim’s picture

Good for me.

voleger’s picture

Status: Needs review » Reviewed & tested by the community

Looks good, injection of state service is properly done.

pifagor’s picture

  • pifagor committed 967b598 on 8.x-1.x authored by thalles
    Issue #3015350 by thalles, alex_optim, voleger, pifagor: Drupal...
pifagor’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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