Problem/Motivation
In Drupal 11, hook implementations via functions in *.module files are deprecated. Hook classes with corresponding #[Hook('hook_whatever')] PHP attributes have to be used - all custom hook code (incl. preprocesses) should be updated for this.
See also:
- https://www.drupal.org/node/3442349
- https://www.drupal.org/node/3551652
- https://www.drupal.org/node/3486506
- https://www.drupal.org/node/3486534
Proposed resolution
- All procedural hooks should be converted to hook classes
Remaining tasks
- Create issue fork and MR to fix this issue
- Convert all procedural legacy hooks to hook classes
User interface changes
n/a
API changes
- All procedural hooks are converted to hook classes
Data model changes
n/a
Issue fork view_mode_switch-3588545
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
hctomAll done, let's get this merged!
Comment #5
hctom