Problem/Motivation

FILE: ...r/www/html/d8-contrib/modules/ds/src/Controller/DsController.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 54 | WARNING | \Drupal calls should be avoided in classes, use
    |         | dependency injection instead
----------------------------------------------------------------------

Proposed resolution

Inject the service entity_type.bundle.info

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

Status: Needs review » Needs work
thalles’s picture

StatusFileSize
new1.69 KB
thalles’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work
swentel’s picture

Version: 8.x-3.x-dev » 8.x-4.x-dev
swentel’s picture

Status: Needs work » Needs review
StatusFileSize
new2.47 KB

  • swentel committed d1b645f on 8.x-4.x
    Issue #3015389 by thalles, swentel: Drupal dependency injection on...
swentel’s picture

Status: Needs review » Fixed

committed and pushed, thanks!

Status: Fixed » Closed (fixed)

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