Skip to content

Issue #3142194: Cumulative Drupal 9 compatibility fixes.

Cumulative Drupal 9 compatibility fixes.

This MR combines all the Drupal 9 compatibility patches from https://www.drupal.org/files/issues/2020-09-09/webform_views.5.x-dev.rector.patch

It is useful to have an issue fork for Drupal 9 compatibility, rather than simply a patch, because:

In short, you can't use a patch to tell Composer that a Drupal 8 module is compatible with Drupal 9.

Source: https://www.mediacurrent.com/blog/how-fix-catch-22-problem-drupal-9-fixes-composer/

Adding Issue Fork as a Composer repository:

To use this issue fork as a transitional D9-compatible package in your project, modify your composer.json:

    "repositories": {
        "drupal/webform_views": {
            "type": "vcs",
            "url": "https://git.drupalcode.org/issue/webform_views-3142194"
        },
        "drupal": {
          "type": "composer",
          "url": "https://packages.drupal.org/8",
          "exclude": ["drupal/webform_views"]
        },

Requiring the patched package from the Issue Fork:

Execute the following command in a terminal:

$ composer require drupal/webform_views:dev-3142194-cumulative-drupal-9

or manually add the requirement to composer.json:

    "require": {
        "drupal/webform_views": "dev-3142194-cumulative-drupal-9",

Credit due, mainly, to Benji Fisher via: https://www.drupal.org/project/views_url_alias/issues/3142138#comment-14177409

NOTE: Tested with Drupal 8. Transitional module now passes Upgrade Status D9 compatibility test.

NOTE: Not yet tested with Drupal 9. You can help the Drupal community by testing this! 👍

Closes #3142194

Edited by Matt Obert

Merge request reports