Install

Works with Drupal: ^11.1 || ^12

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 42.56 KB
MD5: 4a2743765a4283381565c73728b4eba3
SHA-1: d05986426e5e06491be5e088966865ea11e79a13
SHA-256: 64c2f3379e89304dba034b78d5533c8676556057253cf8fe7f3d54da8240f8b5
Download zip 73.71 KB
MD5: d090107cd61586b99f0e75778bbb4a2d
SHA-1: 2651525b5d7f7a198f1b4c7354418be7f9c1c1d8
SHA-256: f0a9fe09d0306cc2be2fa9e413f81729eb4be025eb11ace36e77a643322a1ff5

Release notes

## [4.1.0] - 2026-04-28
### Added
- add experimental coverage of Drupal 11.4
- add array return type to TwigExtension::getFunctions()

### Changed
- remove deprecated setAccessible() calls deprecated since PHP 8.5
- annotate unsafe new static() usages per Drupal PHPStan guidelines
- add PHPUnit 10 PHP attributes (`#[Group]`, `#[RunTestsInSeparateProcesses]`, `#[CoversClass]`, `#[CoversMethod]`, `#[CoversFunction]`, `#[DataProvider]`) to all test classes
- run upgrade-status against Drupal 11.3
- replace @FieldType annotation with #\[FieldType] attribute
- replace @FieldFormatter annotation with #\[FieldFormatter] attribute
- replace @FieldWidget annotation with #\[FieldWidget] attribute
- replace @Condition annotation with #\[Condition] attribute
- replace @ConfigEntityType annotation with #\[ConfigEntityType] attribute

### Fixed
- guard against null original entity before calling hasTranslation()
- add `phpstan (previous major)` CI job that strips PHPUnit attribute lines before analysis against Drupal 10.

### Removed
- drop support of 10.x
- drop support of 11.0.x

[4.1.0]: https://github.com/antistatique/drupal-template-whisperer/compare/4.0.6....

Created by: wengerk
Created on: 28 Apr 2026 at 12:06 UTC
Last updated: 28 Apr 2026 at 12:06 UTC

Other releases