Install
Works with Drupal: ^11.1 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
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....