Description:
When installing the Universal File Utils module on a fresh Drupal 11 installation, the module cannot be enabled due to the following error:

The hook module_implements_alter on class Drupal\universal_file_utils\Hook\UFUHooks does not support attributes and must remain procedural.

Steps to reproduce:
1. Install a fresh Drupal 11 instance
2. Download and enable the universal_file_utils module
3. Attempt to install/enable the module

Expected behavior:
The module installs successfully without errors.

Actual behavior:
Drupal throws an error related to hook_module_implements_alter being implemented via attributes instead of a procedural function.

Additional context:
In Drupal 11, hook_module_implements_alter is not compatible with attribute-based hook implementations and must remain procedural.

Suggestion:
Consider refactoring this hook implementation back to a procedural MODULE.module implementation to ensure Drupal 11 compatibility.

Comments

carstenhager created an issue.