Problem/Motivation

There is no way to get the entities that were referenced for the mail in hook_mail_alter.

Proposed resolution

Add comment ID (cid) to the message parameters array so be able to load the referenced comment.

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

id.rem.dev created an issue. See original summary.

id.rem.dev’s picture

Status: Active » Needs review
silvi.addweb’s picture

Status: Needs review » Reviewed & tested by the community

I've tested and it's working fine.

gnuget’s picture

Status: Reviewed & tested by the community » Needs work

This looks good. Before merging, a small automated test confirming that the comment ID is available in the mail parameters is needed.

Thanks for all the work here!!!

gnuget’s picture

Status: Needs work » Needs review

  • gnuget committed a2e82d86 on 8.x-1.x authored by id.rem.dev
    feat: #3374613 Add comment ID to message params
    
    By: id.rem.dev
    By:...
gnuget’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.