This module adds local patching capabilities to your website. It integrates with the Composer Patches plugin to manage patches for Drupal core and other modules, enabling you to apply custom modifications.
Web Patches shows the patches declared for your site, and the ignored ones, right in the admin UI.
Composer applies the patches, through cweagans/composer-patches and the webship/patches plugin. This module does not apply, download or write patches, and it never fetches a URL. It reads the same declarations and rules Composer reads, so a site owner can see what is patched without opening a terminal.
Features
- Patching sources: the declaration files, and every installed package that declares patches, marked Allowed or Not allowed with the reason.
- Patch lock: whether
patches.lock.jsonmatches the declarations, with the differences and the command that fixes them. - Patches: every declared patch, linked to its drupal.org project, issue and merge request.
- Ignored patches: every patch that is not applied, and why (not in the allowlist, matched by an ignore rule, or listed in
patches-ignore). - A settings form at Configuration > Development > Web Patches to pick the sources and a custom patches file.
Why? Some contrib modules ship their own extra.patches pointing at stale or third party URLs, and a curated patch set changes with every release. Composer knows what it applied, but that lives in lock files and build logs. Web Patches puts it on one report page.
Both permissions are restricted, since the report shows server paths and package versions. Requires Drupal core ^11.1.
Documentation
Full documentation with screenshots: project.pages.drupalcode.org/webpatches
Works with
- cweagans/composer-patches v2 (it reads the v1 keys too)
- webship/patches: the Webship curated patch list and Composer plugin
- webship/drupal-patches: the Webship curated Drupal core patches, one branch per core minor
Ask your assistant about Drupal Website Patches
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 10.0.0 | Stable | Dec 18, 2023 | |||
| 10.0.0-beta1 | Pre-release | Nov 4, 2023 | |||
| 10.0.0-alpha2 | Pre-release | 10 | Aug 8, 2023 | ||
| 10.0.0-alpha1 | Pre-release | 10 | Aug 2, 2023 | ||
| 10.0.x-dev | Dev | Feb 14, 2023 |