Problem/Motivation

Since the 2.1.x branch requires at least Drupal 10.3, the hook implementations can be converted to methods.

Proposed resolution

Convert the hook functions to methods following what described in Support for object oriented hook implementations using autowired services / Backwards-compatible Hook implementation for Drupal versions from 10.1 to 11.0.
The hook classes already exists in the 3.0.x branch; they just need to be copied.

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

avpaderno created an issue. See original summary.

avpaderno’s picture

Title: Convert the hooks to class hooks » Convert hooks to class hooks

avpaderno’s picture

Status: Active » Needs review
avpaderno’s picture

The phpstan job keeps failing because a 500 error.

avpaderno’s picture

Status: Needs review » Fixed

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.