FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\eu-cookie-compliance\src\EventSubscriber\EuCookieComplianceConfigEventsSubscriber.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------------------------------------
50 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
59 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
64 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
-----------------------------------------------------------------------------------------------------------------------------------------

FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\eu-cookie-compliance\src\Plugin\Block\CookieSettingsButtonBlock.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------
31 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
-----------------------------------------------------------------------------------------------------------------------

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

arti_parmar created an issue. See original summary.

arti_parmar’s picture

Assigned: arti_parmar » Unassigned
Category: Task » Bug report
Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new5.38 KB
new5.38 KB

kindly review patch.

keshavv’s picture

StatusFileSize
new6.23 KB
new2.98 KB

Hi, @arti_parmar
Thank you for the patch. But it is incomplete.
I have created the one, Please review it. Also added the diff.
Please review
Thank you.

keshavv’s picture

StatusFileSize
new2.71 KB

Please ignore the above diff. Added a new one.

svenryen’s picture

Status: Needs review » Reviewed & tested by the community

I made a small change to satisfy code styling.

  • svenryen committed 30f4e960 on 8.x-1.x authored by keshavv
    Issue #3366721 by arti_parmar, keshavv, svenryen: \Drupal calls should...
svenryen’s picture

Status: Reviewed & tested by the community » Fixed

  • svenryen committed a4989eb9 on 8.x-1.x
    Issue #3366721 by arti_parmar, keshavv, svenryen: \Drupal calls should...
svenryen’s picture

Status: Fixed » Active

I have to reopen this one, as file.repository isn't available before Drupal 9, and we need this module to also support Drupal 8.

Since we have a code base that will work in Drupal 8, and there are a large number of sites out there on Drupal 8, I'd rather support Drupal 8 than blocking it due to a missing service.

svenryen’s picture

Version: 2.0.x-dev » 8.x-1.x-dev

svenryen’s picture

Status: Active » Fixed

I fixed the d8 compatibility issue.

Here's the patch:

https://git.drupalcode.org/project/eu-cookie-compliance/-/merge_requests...

  • svenryen committed 6b33057f on 8.x-1.x
    Issue #3366721 by svenryen, arti_parmar, keshavv: \Drupal calls should...

Status: Fixed » Closed (fixed)

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