Hello,

I've seen that the module still uses a few deprecated methods.
I replace a few but might have missed some thought i was worth sharing.

Kind regards
Andrew

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

Andrew@Germany created an issue. See original summary.

andrewtur’s picture

knyshuk.vova’s picture

Status: Active » Needs review
knyshuk.vova’s picture

Issue tags: +LutskGCW20

Tagging for Drupal Global Contribution Weekend

manuel.adan’s picture

Some PHPDocs and one unused use statement.

manuel.adan’s picture

Fixes wrong property name replacement.

daniel kulbe’s picture

One thing I noticed, the entity type manager is always saved as property of the classes, but rarely used.
It would be more efficient to save the email_confirmer_confirmation storage as property and work directly with it, instead of instantiating it over and over again ...

daniel kulbe’s picture

I removed a unused use statement in module file and replaced appearances of REQUEST_TIME.

daniel kulbe’s picture

StatusFileSize
new12.46 KB

Found an other occurrence of REQUEST_TIME.

daniel kulbe’s picture

Status: Needs review » Needs work

Further deprecations:

  • Call to deprecated method substr() of class Drupal\Component\Utility\Unicode. Deprecated in drupal:8.6.0 and is removed from drupal:9.0.0. Use mb_substr() instead.
  • Call to deprecated function drupal_set_message(). Deprecated in drupal:8.5.0 and is removed from drupal:9.0.0. Use Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
manuel.adan’s picture

Title: Replace deprecations » Replace deprecations, Drupal 9 compatibility
Status: Needs work » Needs review
StatusFileSize
new15.92 KB
new4.43 KB
  • Some REQUEST_TIME remaining replacements
  • Uses this issue for the D9 compatibility task

  • manuel.adan committed 511a8e2 on 8.x-1.x
    Issue #3100208 by manuel.adan, Daniel Kulbe, Andrew@Germany: Replace...
manuel.adan’s picture

Status: Needs review » Fixed
Issue tags: -LutskGCW20

Committed, thanks. It seems that finally there were no activity from LutskGCW20.

Status: Fixed » Closed (fixed)

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