Drupal 11 compatibility

Created on 24 May 2024, 7 months ago
Updated 26 July 2024, 5 months ago

Problem/Motivation

With the Drupal 11 beta release now available, it would be a good time to get this module ready for Drupal 11. The deprecation tool shows a number of issues beyond getting the info.yml files updated. The include deprecated revision methods (sometimes false positives), and making sure entity queries include an explicit access check. Most of the reported issues are parse errors on twig templates.

Proposed resolution

Investigate and resolve the reported issues, and then create a Drupal 11-ready stable release.

πŸ“Œ Task
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada mandclu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @mandclu
  • Merge request !29Drupal 11 compatibility β†’ (Merged) created by mandclu
  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 9.5.x + Environment: PHP 7.3 & MySQL 5.7
    last update 7 months ago
    Composer require failure
  • Assigned to zengenuity
  • πŸ‡¨πŸ‡¦Canada mandclu

    @zengenuity I believe the code changes proposed here should make this module compatible with Drupal 11, although requiring at least Drupal 10.1 in the process. Please review and confirm that everything still works as expected.

  • Status changed to Needs review 7 months ago
  • First commit to issue fork.
  • Status changed to Needs work 7 months ago
  • πŸ‡ΊπŸ‡ΈUnited States zengenuity

    @mandclu, this looks good except the switch from fnmatch() to glob(). That code crashes when I test it.

    I also made a few additional changes to the handling of dependencies in easy_email_commerce to make sure we don't crash from missing modules there.

  • Status changed to Needs review 7 months ago
  • πŸ‡¨πŸ‡¦Canada mandclu

    I decided to revert the places where I had directly accessed the entityTypeManager as a property instead of using the accessor method, since it was effectively bypassing an API. I've also tried a different method to replace fnmatch(), hopefully this one works better.

  • Pipeline finished with Skipped
    5 months ago
    #222889
  • Status changed to Fixed 5 months ago
  • πŸ‡ΊπŸ‡ΈUnited States zengenuity

    This all looks good now. I tested it manually on D10 and D11, and it worked in both places.

    I've merged the MR and created a new release: 3.0.1. Thanks for your work on this!

    Today, I also released a new version of Drupal Symfony Mailer Lite β†’ that is D11-compatible. So, we have a full D11 solution for emails on day 1. (currently using dev branches for Mail System and Token, which are D11 compatible)

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

Production build 0.71.5 2024