- Issue created by @NicholasS
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.
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);
Active
1.0
Code