Install
Works with Drupal: ^10 || ^11 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
134.68 KB
MD5: 9d46c8067f1f1e3e0069f2acad6483cb
SHA-1: fc76a4db5fa939cad8982ae1a5cffe79b4356103
SHA-256: 9aeb504feb2c7ec9ad3d2f0ef87f56f0dbfca006533f158349ffef8819f57924
Download zip
197.26 KB
MD5: 6be69a1c22faa8a15e118bada7817a4f
SHA-1: 5df955ae77455f6ea1d4691b5ee712e958e7a2ab
SHA-256: 1b236e43b3890a92c07e1b794d9ea3c9d690f9f376ba4592f29bd850c9fc292d
Release notes
Updating from an earlier release no longer takes the site down until caches are rebuilt; Drupal 12 is tested in CI again. Covers everything since 3.1.4, the last published release.
Requirements
- Drupal
^10 || ^11 || ^12, PHP 8.1+, and the Key module.
Fixes
- HTTP 500 on every page after an update, until
drush cr(#3628961: https://www.drupal.org/node/3628961). The#[LegacyHook]wrappers fetched their hook class with\Drupal::service(), a service the site's compiled container does not have yet right after an update. They now use\Drupal::classResolver(), which returns the service when it exists and builds the class when it does not. Reproduced and fixed on Drupal 10.6, 11.4 and 12.
Tests and CI
- A Unit guard fails if a hook wrapper fetches a hook class as a service again; a Kernel test removes the service from the container and calls the wrappers.
- CI runs the Drupal 12 job again. It had been switched off on the belief that "next major" meant Drupal 13; it is Drupal 12.0-dev.
- Mocks that set no expectations are now stubs, so PHPUnit 12 (Drupal 12) reports no notices.
After updating
Run drush updb, then drush cr. This release adds no database updates.