Problem/Motivation

See https://www.drupal.org/node/2940031

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 3259005.patch652 bytesheddn
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

heddn created an issue. See original summary.

heddn’s picture

Status: Active » Needs review
StatusFileSize
new652 bytes
svenryen’s picture

Thanks @heddn!

  • svenryen committed 14aaaa6 on 8.x-1.x authored by heddn
    Issue #3259005 by heddn, svenryen: Deprecated use of...
svenryen’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

svenryen’s picture

Status: Closed (fixed) » Active

I'm reverting and reopening this issue, since we can't remove that function from 8.x (I see now your patch was meant against 2.x and not 8.x-1.x. We'll have to see whether we can get 2.x out the door in time for the Drupal 10 beta or if we need to shift the current 2.x to 3.x and release a 2.x that's the same as 8.x-1.x but for 9.x/10.x only.

Most likely we can still use the same patch, and commit it to the proper branch when that time comes.

svenryen’s picture

@agoradesign, I hear you, but I disagree. Experience with maintaining the module has told me that there are a lot of users on old drupal setups, and they deserve to get bug and security updates too.

svenryen’s picture

Status: Active » Fixed

I have found a way to get the best of both worlds :)

Wrapping the old code in if (\Drupal::VERSION < 9.3) { lets us safely add the new code from @heddn.

In fact, according to https://www.drupal.org/node/2940031, it's possible to write just ->generateString(...).

Committing this to -dev.

  • svenryen committed 3bb56e1 on 8.x-1.x
    Issue #3259005 by svenryen, heddn: Deprecated use of...

Status: Fixed » Closed (fixed)

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