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:

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

Command icon 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

hctom created an issue. See original summary.

hctom’s picture

Assigned: hctom » Unassigned
Status: Active » Fixed

All done, let's get this merged!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

hctom’s picture

Status: Fixed » Closed (fixed)