Install
Works with Drupal: ^10.1 || ^11 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
Drupal 12 compatibility
This release adds Drupal 12 compatibility.
Changes
- Update supported Drupal core versions to `^10.1 || ^11 || ^12`.
- Migrate hooks to an object-oriented hook service, retaining legacy wrappers for backward compatibility.
- Update PHPUnit metadata so the existing functional tests run on Drupal 12.
Requirements
The minimum supported Drupal version is now **10.1**, increased from Drupal 10.0.
Testing
- All 8 existing functional tests passed on Drupal 12.0.x-dev, with 61 assertions.
- Manual testing passed on Drupal 11 and Drupal 12, covering locking and unlocking, deletion-route and access-check protection, and content-overview lock icon updates without a manual cache rebuild.
- Drupal 10 compatibility was not tested locally.
Related issue
- [#3601773: Automated Drupal 12 compatibility fixes](https://git.drupalcode.org/project/page_deletion_guard/-/work_items/3601773)
Includes the automated changes from MR !2 and the functional-test updates merged through MR !3.