Hook to alter emails sent

Created on 22 July 2025, 17 days ago

Problem/Motivation

We have twig templates to alter the email template sent to users notifying them of PDF's that fail scans. But we have custom taxonomy (Owners) attached to content that helps identify other users responsible for that content, so I would like to add a hook to allow other modules to alert the recipients so sites can implement custom logic like this.

Steps to reproduce

Proposed resolution

implement a hook_pdf_services_notification_recipients_alter()

 // Allow other modules to alter the recipients list
      $context = [
        'file' => $file,
        'node' => $node,
        'report' => $report,
        'config' => $config,
        'original_recipients' => $recipients,
      ];
      $this->moduleHandler->alter('pdf_services_notification_recipients', $recipients, $context);

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States NicholasS

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

Comments & Activities

Production build 0.71.5 2024