markdown 使用作曲家应用drupal补丁

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 使用作曲家应用drupal补丁相关的知识,希望对你有一定的参考价值。

{
  // etc above ...
  "extra": {
    "patches": {
        "drupal/webform": {
          "Field no longer required after editing.": "https://www.drupal.org/files/issues/2019-01-30/3029543-6.patch"
        }
    },
  }
  // etc below....
}
# Apply a patch to a drupal module using composer.

## Apply patch

1. In `composer.json` add the new object to `extra.patches`.
2. Run `composer install`
3. If everything went well then you need to tell the `composer.lock` file to update itself with the new patch.
4. Run `composer update --lock` if so.

## Remove patch

1. Remove the patch from `extra.patches`.
2. Run `composer install`
3. Update `composer.lock` by runing `composer update --lock`.
4. 

## JSON documentation

```json
{
  "extra": {
    "patches": {
        "path/to/module": {
          "Description": "https://link.com/to/patch"
        }
    },
  }
 }
```

**path/to/module** - Same as it is in the `require` object.
**Description** - Title of issue thread.
**https://link.com/to/patch** - Link to patch file from issue thread.

以上是关于markdown 使用作曲家应用drupal补丁的主要内容,如果未能解决你的问题,请参考以下文章

markdown 如何使用Composer在Drupal 8中应用补丁

sh 应用Drupal补丁

text ubuntu drupal drush作曲家

使用composer安装Drupal 8.x但使用本地镜像

无法更新drupal核心,因为项目在phpstorm中打开

如何使用composer创建生产稳定drupal 8项目?