Comments

jalpesh created an issue. See original summary.

jalpesh’s picture

Assigned: jalpesh » Unassigned
Status: Active » Needs review
StatusFileSize
new2.74 KB

Here we go with patch.Thanks.

borisson_’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new536 bytes
new2.72 KB

I fixed one small thing to comply with the drupal coding standards. It's not allowed to use a FQN in code. RTBC.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 3: remove_deprecated_usage-2772089-3.patch, failed testing.

borisson_’s picture

Status: Needs work » Reviewed & tested by the community

Back to rtbc, the fail on php5.5 is unrelated.

berdir’s picture

Status: Reviewed & tested by the community » Needs work

Thanks for the patch.

I prefer \Drupal:.database() over Database::getConnection().

And for the plugin class, lets properly inject the database connection, replacing with the static call doesn't bring us anything.

lpsolit’s picture

Assigned: Unassigned » lpsolit
Status: Needs work » Needs review
StatusFileSize
new2.61 KB

Not sure what you mean by "for the plugin class, lets properly inject the database connection", so I simply replaced db_select() by \Drupal::database()->select() there too. Tell me what you meant exactly if you want me to change it.

lpsolit’s picture

StatusFileSize
new4.6 KB

OK, I think I got it. :)

  • Berdir committed f6611af on 8.x-1.x authored by LpSolit
    Issue #2772089 by LpSolit, borisson_, jalpesh: Remove deprecated usage...
berdir’s picture

Status: Needs review » Fixed

Yeah, exactly like that, thanks!

Status: Fixed » Closed (fixed)

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