Problem/Motivation
Make the module D11-compatible
Proposed resolution
Update compatibility to include ^11
Replace deprecated function user_roles() in shortcutperrole.module:31 with Drupal\user\Entity\Role::loadMultiple()
Replace deprecated function user_roles() in src/Form/ShortcutPerRoleSettingsForm.php:60 with Drupal\user\Entity\Role::loadMultiple()
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | shortcutperrole_d11_compatible.PNG | 7.33 KB | ggh |
Issue fork shortcutperrole-3514094
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
Comment #3
chris dart commentedComment #4
ggh commentedAs per Upgrade status - this is compatible
Comment #6
jwilson3The code changes look good. I fixed some phpcs issues introduced in the patch and tested in the UI.
Before:
After:
Comment #7
jwilson3I'm creating a new 2.1.x branch to merge this, so that the 2.0 branch retains integration with older versions of Drupal.
Comment #9
jwilson3This fix is included in release 2.1.0
Thanks @chris dart.
Comment #10
lostkangaroo commentedIt looks like the current 2.1.0 release does not include the D11 compatibility MR commit as advertised. Would you be so kind as to do another patch release of 2.1.1 based on the current 2.1.x branch.
Comment #11
jwilson3Thanks for flagging that @lostkangaroo. My apologies.
2.1.0 was meant to add Drupal 11 support, but it was tagged off the wrong commit. It’s identical to 2.0.1 and should be ignored.
To fix this, I've tagged 2.1.1 and updated the release notes on 2.1.0 to indicate the same.
You can verify this by reviewing the tags shown on the repository graph in gitlab here:
https://git.drupalcode.org/project/shortcutperrole/-/network/2.1.x?ref_t...