Install
Works with Drupal: ^10 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
5 ### Drupal 11 Compatibility Release
6
7 **Minimum Requirements:** Drupal 10.x or Drupal 11.x | PHP 8.2+
8
9 ---
10
11 ### Summary
12
13 This release upgrades the Multilingual Google Web Translator module for full Drupal 11 compatibility while maintaining backward compatibility with Drupal 10.
14
15 ---
16
17 ### Changes
18
19 #### Core Compatibility
20 - Updated `core_version_requirement` to `^10 || ^11`
21 - Module now fully supports Drupal 11
22
23 #### Code Quality Improvements
24 - Added `declare(strict_types=1)` for strict type checking
25 - Added proper PHPDoc file header documentation
26 - Added type hints to all function parameters
27 - Added return type declarations (`: array`, `: ?string`)
28 - Modernized code to follow Drupal 11 coding standards
29
30 #### Module File Updates
31 - Refactored `hook_theme()` implementation with proper type hints
32 - Updated `hook_help()` with typed parameters and nullable return type
33 - Improved help text documentation
34
35 #### Form Updates (`LanguageSelectForm.php`)
36 - Refactored form class with modern Drupal patterns
37 - Updated method signatures with proper type declarations
38 - Improved code organization and readability
39
40 #### Block Plugin Updates (`TranslateBlock.php`)
41 - Modernized block plugin with Drupal 11 compatibility
42 - Added proper dependency injection patterns
43 - Updated annotations and method signatures