Add legacy hooks for tokens to module file

Created on 26 May 2025, 12 days ago

Problem/Motivation

TokenHooks have been added, using object oriented hooks, but for D10 compatibility, hook definitions need to be added to the module file, making service calls to the object oriented hooks.

Steps to reproduce

See parent issue.

Proposed resolution

In verify_email.module, add hook functions, with the [LegacyHook] attribute.

Remaining tasks

  1. Create a two new hook functions in verify_email.module, verify_email_token_info and verify_email_tokens.
  2. Add the [LegacyHook] attribute to the new functions.
  3. In the functions, invoke the TokenHooks service through \Drupal::service, and call the relevant object oriented hooks.

User interface changes

None.

API changes

None.

Data model changes

None.

📌 Task
Status

Active

Version

1.1

Component

Code

Created by

🇮🇪Ireland lostcarpark

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024