Webform access tokens do not get replaced when ECA is enabled
Problem/Motivation
When using Webform access tokens in email handlers (to, cc, bcc fields), the tokens do not get replaced with email address as expected.
I have tested this issue with both a fresh install of Drupal 9 and Drupal 10 (with their respective Webform versions).
** For a reference of what is meant by Webform access tokens, see Jacob Rockowitz's explanation here: https://youtu.be/EPg9Ltwak2M?t=823
Steps to reproduce
- Install a fresh copy of Drupal 10
- Install and enable the Webform, ECA and BPMN IO modules
- Enable the Webform submodule "Webform Demo: Region Contact System"
- Access one of the nodes created by the demo module (for example: "United States: Northeast: Contact")
- Fill out the contact form
- The debug information should list several email addresses. This is not the case when ECA is enabled and there are no email addresses shown indicating that the webform access tokens were not replaced as expected.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Edited by drupalbot