Token should be a dependency in ECA

Created on 2 June 2024, 27 days ago
Updated 4 June 2024, 25 days ago

I'm doing some experiments with ECA on a fresh Umami profile. It's a fresh install. I set up a flow with webform and realized the token actions not working. After a while doing debugging, I figured out I haven't installed the module "Token". I see in ECA Base we have actions and conditions like "Token: replace", "Token: set context", "Token: exists", "Compare two scalar values", etc. I guess these actions or conditions will not work without Tokens module being installed.

It's just a suggestion that ECA module should list "Token" as a dependency.

πŸ’¬ Support request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States sea2709 Texas

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

Comments & Activities

  • Issue created by @sea2709
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    Hi @sea2709, the token module off not required for tokens to work. The token functionality comes from Drupal core. The contributed token module only provides some extra tokens and the token browser.

    So, of tokens didn't work in your tests, that just be for different reasons. Maybe the token syntax was wrong or the token didn't even exist.

    Can you provide some details in what didn't work in which context?

    Also, have you seen the chapter about tokens in the ECA guide?

  • πŸ‡ΊπŸ‡ΈUnited States sea2709 Texas

    Thanks @jurgenhaas.

    I just checked out the tokens guide in ECA guide, it provided me so much information. I understand more about tokens now. Just had a thought came to my mind, not sure if it's beneficial when the debug logs provide info about all existing tokens at a conditional or action step?

    My ECA workflow was kind of simple, I created a webform, and based on the webform submission data, users will be redirected to different pages. I just compare webform submission token values to determine which page I should redirect user to.

  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    not sure if it's beneficial when the debug logs provide info about all existing tokens at a conditional or action step?

    Yes, exactly, that's already built in :-) Please have a look at Debugging where you can find out how you best get access to those logs.

Production build 0.69.0 2024