Problem/Motivation

Support for OOP hooks was introduced in Drupal 11.1. The respective hooks in the main module, plus the sub modules, should be updated to use the new standard.

Steps to reproduce

n/a

Proposed resolution

Extract all hooks in *.module files to OOP hooks using Drupal\Core\Hook\Attribute\Hook.

Remaining tasks

Update all hook implementations

User interface changes

None known at this time

API changes

None known at this time

Data model changes

None known at this time

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

tregonia created an issue. See original summary.

smustgrave’s picture

Status: Active » Postponed

Not doing this till D10 is EOL

smustgrave’s picture

Version: 4.0.x-dev » 5.0.x-dev
Assigned: tregonia » smustgrave
Status: Postponed » Active

  • smustgrave committed 0f8dd3e2 on 5.0.x
    feat: #3522439 Implement support for object oriented hook using Hook...
smustgrave’s picture

Status: Active » Fixed

Pipeline issues are expected. I'm revamping the tests.

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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.