应用 Composer 的 Drupal 8 补丁修复签名字段上的多个字段

Apply Drupal 8 Patch by Composer for fix multi fields on Signature Field

我尝试修补 Signature Field Drupal 模块

我遵循本教程 (https://groups.drupal.org/node/518975),但我没有得到任何更改。

我的尝试:

1-运行: composer require cweagans/composer-patches

2-编辑 composer.json

"extra": {
    "installer-paths": {
    ...
    },
    "patches": {
        "drupal/signature_field": { //here my module is signature_field
            "Drupal Signature Field fix multi feilds": "https://www.drupal.org/files/issues/2019-02-21/signature_field-2993223-08.patch"     
        }
    }
}

3- 运行 composer install

问题: 我 运行 composer install 但是安装或更新了所有软件包,但我的模块没有变化。怎么了?

当我搜索并尝试一些方法时,我发现我应该再次使用 composer 安装模块,问题就会解决。

Configuration in the question is fine Just run this command to reinstall the module with patch

运行 composer require drupal/signature_field

你的输出将是这样的:

希望对某些人有所帮助!