Regression: entity, flag, flagging tokens removed without notice
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3469011. --> Reported by: [freelock](https://www.drupal.org/user/313537) Related to !2 !3 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>We had several models using [flag], [flagging], and [entity] tokens after a flag or unflag event. After upgrading to 2.0, these all stopped working.</p> <p>The documentation site - <a href="https://ecaguide.org//plugins/eca/flag/events/flag_flag/">https://ecaguide.org//plugins/eca/flag/events/flag_flag/</a> - does not list these tokens, but instead shows them as parts of the [event] token - [event:flag], [event:flagging], [event:entity].</p> <p>This change was not documented.</p> <p>Worse, you cannot simply prefix the token with event -- [event:flag:name] does not expand.</p> <p>As a workaround, assigning these to tokens using the Set Token Value action does work -- so setting a token "flag" to [event:flag] does allow you to use the [flag:name] token.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Either add the tokens to the context of the event, or better document this as a change, with a change record and a notice on the 2.x branch.</p> <p>Also, fix token processing so it chains like other tokens.</p>
issue